Re: [R] System memory

2004-07-05 Thread Jason Turner
> Dear All, > > I have been experiencing the following problem when I use a lot of system > memory when using R heavily. ... What version of R, Xemacs, ESS, and Debian? What are the "crash" symptoms (error message?). Have you tried upgrading everything you can (ESS has recently released a new sta

Re: [R] recommended citation

2004-07-04 Thread Jason Turner
> Dear Sirs, > > I used the nlme package for the statistical analysis of my data for > prepared MS. Please, can you write me what is your recommended form of > citation of this program? > Thanks in advance for your reply. > I "cheat" and cite the book that supports it: @Book{Pinheiro:2000:MMS,

Re: [R] R can't find some functions in assist package

2004-06-30 Thread Jason Turner
> Oh yes. The "load package" under the "packages menu" in the Windows > version > does that. To check I typed "library(assist)" after starting R. Same > behavior, ssr is found, but others like predict.ssr, and plot.ssr, give a > "not found" message. Short answer: Try using "predict" instead of "p

Re: [R] rownames of single row matrices

2004-06-11 Thread Jason Turner
On Fri, 2004-06-11 at 20:09, Robin Hankin wrote: > Hi > > I want to extract rows of a matrix, and preserve rownames even if only > one row is selected. The infamous drop=TRUE default. help("[") goes into this. Your toy example, two ways: > a <- matrix(1:9,3,3) > rownames(a) <- letters[1:3] >

Re: [R] moving data and output?

2004-06-09 Thread Jason Turner
> Hello, > > I have a few questions now: Yes. Since the mail is archived to help other people, in future please send a small mail for each question, with a descriptive subject line for each. This makes it easier for everyone. > 1. How can I move data the following way: > > I have 2 variables:

Re: [R] more obvious contribution mechanism?

2004-06-08 Thread Jason Turner
On Wed, 2004-06-09 at 13:22, ivo welch wrote: > can we put a "how to donate money to R" on the R webpage? perhaps with > a paypal button? > Does the R Foundation link meet this need? http://www.r-project.org/foundation/main.html Cheers Jason __ [E

Re: [R] off topic publication question

2004-06-08 Thread Jason Turner
On Wed, 2004-06-09 at 05:11, Erin Hodgess wrote: > If a single author is writing a journal article, > should she use "We performed a test" > or "I performed a test", > please? Does the particular journal specify a style manual or style sheet? The Chicago Manual of Style \cite{Chicago2003}, p160,

Re: [R] Little question

2004-06-08 Thread Jason Turner
On Tue, 2004-06-08 at 21:44, zze-PELAY Nicolas FTRD/DMR/BEL wrote: > Here I got a function : > > f<-function(x){ > res<-list() > res$bool=(x>=0) > res$tot=x > return(res) > } > > I want that a=res$bool and b=res$tot > I know that a possible solution is : > Like foo <- function(x,...){

Re: [R] zipping a new package

2004-06-02 Thread Jason Turner
On Sun, May 30, 2004 at 03:19:24PM -0500, Laura Holt wrote: > Dear R People: > > I have finally created a little R package. > > Do I need to do anything special to create a zip file for that package, or > just use Winzip, please? > > thanks so much > > R Windows Version 1.9.0 > Re-read "Writ

Re: [R] ffnet problem

2004-05-31 Thread Jason Turner
> Anyway, what steps should I take now? "should" isn't quite what I'm telling you; just free advice. :) I use nnet from the nnet package (VR bundle), and find it very good. And it doesn't require any additional libraries. If you've got a binary installation, you've probably got it already...

Re: [R] problems with quantreg installation

2004-05-30 Thread Jason Turner
> make: g77: Command not found > make: *** [akj.o] Error 127 You need a fortran compiler. Search the RPM lists for g77 (or just "fortran"). Cheers Jason __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE d

Re: [R] SCO & R

2004-05-27 Thread Jason Turner
On Thu, May 27, 2004 at 12:53:46PM -0700, Greg Tarpinian wrote: ... > recently > I read an article in Forbes which discussed how SCO > was going after companies that have been using Linux. It couldn't have been that recent; SCO dropped the most Linux- relevant portions of its lawsuit back in Janua

Re: [R] Saving/exporting graphs

2004-05-25 Thread Jason Turner
> HI: > > I have tried to find a way in which to export/save graphs via the command > line. I know i can right click on it and save it as wmf etc. > But I was wandering if there is a function such as Splus' > export.graph ?win.metafile as in win.metafile("c:/foo.wmf") plot(blah,blah,blah) dev.of

Re: [R] Metafiiles into Word R 1.9.0

2004-05-24 Thread Jason Turner
> 2.-The computer at work has Microsoft Windows 2000 (5.00.2195 Service > Pack > 2) and Word 2000 (9.0.4402 SR-1) I cannot copy-paste windows metafiles > into > Office applications in my computer at work. The resulting object is empty. > Is it genuinely empty, or can you see the graphs in pr

Re: [R] Help with Plotting Function

2004-05-22 Thread Jason Turner
On Fri, May 21, 2004 at 12:41:53PM -0400, Harold Doran wrote: > Dear List: > > I cannot seem to find a way to plot my data correctly. I have a small data frame > with 6 total variables (x_1 ... x_6). > > I am trying to plot x_1 against x_2 and x_3. > Sundar has already answered the question -

Re: [R] No load() from script

2004-05-22 Thread Jason Turner
On Fri, May 21, 2004 at 11:35:16AM -0400, Matej Cepl wrote: ... > > #data.multiple <- read.table(file="multiple.csv",sep="\t") > > load(file="multiple.RData") > Error in open.connection(con, "rb") : unable to open connection > In addition: Warning message: > cannot ope

Re: [R] for() to lapply()

2004-05-20 Thread Jason Turner
On Thu, May 20, 2004 at 03:52:22PM -0500, Kenneth Cabrera wrote: > Hi dear R-users: > > I have the following problem: > I have a list of data.frames (12 variables and 6 rows, each) > > I have to merge from an specific point of the list to the > end of the list, I am doing so with a for() loop

Re: [R] Repeated measures ANOVA

2004-05-20 Thread Jason Turner
On Wed, May 19, 2004 at 11:11:46PM -0600, GIDEON WASSERBERG wrote: > Dear friends > > I am not sure that I am conducting this analysis correctly. > I would really appreciate if someone can verify what I've done. > I conducted repeated measures ANOVA for some bugs data. > These bugs were measure

Re: [R] irregular time series

2004-05-20 Thread Jason Turner
On Thu, May 20, 2004 at 02:23:46PM +0930, McClatchie, Sam (PIRSA-SARDI) wrote: [long time series, broken in two with a gap] > I realise that I could just break each series into two segments and > cross-correlate with the shorter series, but I'd rather deal with the whole > series to increase the ny

Re: [R] POSIX to ts and back to POSIX

2004-05-20 Thread Jason Turner
On Wed, May 19, 2004 at 03:24:38PM -0400, [EMAIL PROTECTED] wrote: > I am trying to use POSIX datetime objects rather than chron datetime > objects but am having difficulty with POSIX in a time series. My > question: Once a POSIXct vector is bound to a time series, is there a > function to conver

Re: [R] mixed models

2004-05-18 Thread Jason Turner
> Hi folks > > Can anyone direct me to a guide to analysing mixed models in R that is > understandable by mere mortals (or worse, mere biologists)? I have read > MASS and also Mick Crawley's book on the subject, have thrashed my way > through the various help files from the NLME package and I'm afr

Re: [R] Help : trellis.device

2004-05-18 Thread Jason Turner
> Hi, R members. > > I want to save plots. So I use the R as fallows : > > a <- c(1,10) > b <- c(1,10) > c <- c(2,20) > d <- c(2,20) > require(lattice) > trellis.device("bmp", file = "test.bmp", bg = "white") > print(plot(a,b)) > print(plot(c,d)) > dev.off() > -

Re: [R] watermarks

2004-05-13 Thread Jason Turner
> Hi, I would like to plot a graph which sits in the background as a > watermark with other plots in the foreground - on top. "par()" is where most of these questions lead. Try ?par particularly the "new" argument. Cheers Jason __ [EMAIL PROTECTED]

Re: [R] tapply & hist

2004-05-13 Thread Jason Turner
> ... > # Histograms by technology > par(mfrow=c(2,3)) > tapply(Pot,SGruppo,hist) > detach(dati) > > It all works great but tapply(Pot,SGruppo,hist) produces 6 histograms > with > the titles and the xlab labels in a generic form, something like > integer[1], > integ

Re: [R] Lists and outer() like functionality?

2004-05-10 Thread Jason Turner
"David Orme" <[EMAIL PROTECTED]> wrote: ... > I'm have a list of integer vectors and I want to perform an outer() > like operation on the list. As an example, take the following list: > > mylist <- list(1:5,3:9,8:12) > > A simple example of the kind of thing I want to do is to find the sum > of the

Re: [R] need help: regression models

2004-05-10 Thread Jason Turner
"Rodrigo" <[EMAIL PROTECTED]> said: > I am working with some data which i would like to find the best fit model > for them. > First, this data are in a matrix. Each of the columns are treatments and > the raws are repetions for the each tratment. Is the response in a separate vector, or is it one

Re: [R] Upgrading (was: help about R)

2004-05-08 Thread Jason Turner
> Dear Sir/Madam > Hello > > I'm Ph.D student of psychometric at the university of > Tehran.I use R version 1.8.1. I want to upgrade the R > into higher version.I downloaded the latest version > "R-1.9.0.tgz". Unfortunately I could not to upgrade > the R. Could you tell me how I can to upgrade the

Re: [R] Invalid HOMEDRIVE

2004-05-07 Thread Jason Turner
Jim Stimson wrote: Attempting to install the most recent R on a Windows/XP machine, I get what appears to be a normal (completely default) installation. Then when I attempt to load rgui I get the fatal error message: Invalid HOMEDRIVE. Any explanation of the error or suggestions of fixes to file

Re: [R] Rterm

2004-05-07 Thread Jason Turner
Johannes SCHNITZLER wrote: The second question: I was trying to set the working directory while I'm calling a script with Rterm.exe from the command line. Something like c:\Program Files\R\rw1090\bin\rterm.exe --vanilla "workingdir=c:/data/" Not sure - if you could pass the working directory as an

Re: [R] Rterm

2004-05-07 Thread Jason Turner
> With R1090 > > C:\Program Files\R\rw1090\bin\rterm.exe --vanilla "Arg2" > > There is the error message: Rterm.exe is not a valid Win32 application > > I tried on Windows 2000 and XP > > I couldn't find out what to change. Weird. Did you install in C:\Program Files\R\rw1090\? On my XP machine

Re: [R] Linear Programming

2004-05-03 Thread Jason Turner
> Hi, > > Can someone tell me how to use R to solve a simple LP problem like this? > Thanks! > > Maximize 5X1 + 3X2 > Subject to: > 2X1 + X2 <=40 > X1 + 2X2 <=50 > Where > X1 >= 0 > X2 >=0 help(I.will.do.my.own.homework) is the function you're looking for. Cheers Jason _

Re: [R] Getting parameters from within function

2004-05-03 Thread Jason Turner
[EMAIL PROTECTED] wrote: Hi R-Helpers Is there a way to access the parameters passed to a function all at once? I want something like: misc.params = list(...) except such that it works with formal named parameters. Does match.call() do what you want? foo <- function(x,y,long.winded.arguemnt.name

Re: [R] plotting in R

2004-05-02 Thread Jason Turner
Karla Meurk wrote: Hi there, I have 2 questions which I cannot find answers for in Dalgaard or the helpfiles currently available. (1) I wish to plot 3 ecdf plots on one graph. Is there any way of holding a figure to plot all on the same plot. I can't get an ecdf for any plot command other tha

Re: [R] Help making a simple R code only package

2004-05-02 Thread Jason Turner
Stephen Pavlik wrote: Hello, I am new to R and I am trying to figure out how to build and install a package with nothing but R code inside. I have run 'package.skeleton' to get the basic structure. When I run 'Rcmd INSTALL testPackage' I get this error message: make: *** No rule to make target `F

Re: [R] building a "simple" R package

2004-05-01 Thread Jason Turner
Charles Annis, P.E. wrote: Dear R-ers: Recognizing that it is better to remain silent and have people think you stupid than to speak and remove any doubt, I fear that I must speak nonetheless. I am having the Devil's own time trying to make a simple R package for my own use. Yes, I have perused th

Re: [R] PCA filtering

2004-05-01 Thread Jason Turner
[EMAIL PROTECTED] wrote: Hi, Is there a function under R that does principal component analysis and then use the selected eignevectors to filter the data and transform back to the original coordinates? If there isn't, can someone guide as to how to do this approach. Much appreciated. Does the "pre

Re: [R] results from t-test

2004-05-01 Thread Jason Turner
F. Patrick Graz wrote: Greetings, I'm rather new to R, and only just subscribed to the mailing list. I have run into a strange result in a t-test. The data represents the the hypothetical differences obtained for a t-test for dependent samples. All the numeric output looks OK, but the statement t

Re: [R] Arrow movements in R

2004-04-30 Thread Jason Turner
> I recently upgraded to R-1.9.1 but now the arrow keys do not scroll up > and down the command lines in R. Instead I get ^[[A > > My SuSe 9 platform is missing some program. What is it? The readline-devel rpm. Is this FA'd enough to be a FAQ? Jason

Re: [R] [R ESS]

2004-04-28 Thread Jason Turner
Erin Hodgess wrote: Dear ESS/R People: I installed ESS as per the directions on the ESS page from the R-Gui Page. When I start Xemacs/ESS, the scratch window comes up but no R. Also, the special function button do not come up. If the R bin folder is on your path (something like c:\Program Files\R

Re: [R] RODBC installation in debian

2004-04-22 Thread Jason Turner
> I am trying to install RODBC package in a debian linux > box but getting the following message. Can anyone help > me to find what I am doing wrong here: > This sort of problem usually stems from issues covered in the README file in the RODBC tarball. Have you untarred it and read this file? Ch

Re: [R] formatted table to disk

2004-04-21 Thread Jason Turner
Randy Zelick wrote: Hello, Thanks for the help, all who made suggestions. Sink worked -- I don't know why I can't find these things. I'll look at the xtable package as suggested also. The Hmisc package also has a latex() function, for different take on the same thing. Also, R2HTML is good if

Re: [R] Indexing by factor misfeature

2004-04-20 Thread Jason Turner
> Yesterday I was biten by a feature, which I find too dangerous. >From your description, it sounds like you confused row lables and vector values -- two very different things. It also sounds like you mixed up factor values and levels. Let me know if I'm wrong. > I wanted to use a factor `Subje

Re: [R] Size of R user base

2004-04-19 Thread Jason Turner
Dirk Eddelbuettel wrote: My preference goes with the numbering scheme attributed to a tribe on some island in the Pacific which consists of a 'factor' with four levels: 'one', 'two', 'three', and 'lots'. Australia. I've been there. Nice place. ;) Jason (who is an Australian) ___

Re: [R] classification and association rules in R

2004-04-19 Thread Jason Turner
Rong-En Fan wrote: > By the way, I heard that there are some people developing a better > search interface for R (or CRAN?). Where are the related information > I can get? Strangely enough, by following the "Search" link on CRAN. Jason __ [EMAIL PROTE

Re: [R] install packages

2004-04-15 Thread Jason Turner
> I am trying to install packages, WHat i did is: > > options(CRAN= "http://cran.us.r-project.org/";) > install.packages("pakgs") Is that really the package name? I can't find it on CRAN. > However I got error message like: ... > argument `lib' is missing: using C:/PROGRA~1/R/rw1051/library in:

Re: [R] Distributed lag model

2004-04-15 Thread Jason Turner
> > Has anyone writtent an R function for estimating linear > models with distributed lags(using matrix algebra)? > > Y(t) = Bo + B1Xt-1+ B2Xt-2+e > The "dse" bundle, with libraries "dse1" and "dse2" have functions for this in VARX or state space form. Cheers Jason _

Re: [R] Course***May-June 2004***R/Splus Programming Techniques, @ 5 locations near you!

2004-04-15 Thread Jason Turner
Peter Dalgaard wrote: I was actually reading it with some curiosity as to how they managed to find 5 locations that were close to everyone on R-help... "Close, for sufficiently large values of 'close'..." :D Jason __ [EMAIL PROTECTED] mailing list https:

Re: [R] how to add legend to time series plot

2004-04-15 Thread Jason Turner
Uwe Ligges wrote: I guess it is clipped in this case. Use par("usr") after ts.plot() to see what the user coordinates are, and whether (1, -0.3) is a sensible location to place the legend. Uwe Ligges Just to add to Uwe's good suggestion -- what I usually do is opar <- par(no.readonly=TRUE) par(

[R] Not a bug - Was: [R] A bug report?

2004-04-14 Thread Jason Turner
Ajay Shah wrote: where it is asif the summary.lm(m) statement never occurred. If I put in a statement print(m) it works, but the summary.lm(m) does not work. Now here's what's weird: Suppose I remove the statement that comes AFTER this summary.lm(m) statement. That is, I don't say details = sum

Re: [R] poisson repeated meassures

2004-04-14 Thread Jason Turner
Liliana Forzani wrote: Dear R users: I try to use GEE or glmm or glmmML for poisson data but since I have DOUBLE repeated meassure I could not use those. Is there something in R for double repeated meassure for nonnormal data? Jim Lindsey has a few packages for this. http://alpha.luc.ac.be/~jlinds

Re: [R] prcomp - error code 18

2004-04-14 Thread Jason Turner
Laura Quinn wrote: I am attempting to perform a pca on a data frame of dimension 5000x19, but when I execute pcapres<-prcomp(pres,center=TRUE) the following error message is returned: Error in La.svd(x, nu, nv, method) : error code 18 from Lapack routine dgesdd Where am I going wrong? I am runni

Re: [R] dataframe: visualization as tiles(?)

2004-04-13 Thread Jason Turner
Whoops - didn't get what you meant ?mosaicplot is your friend Cheers Jason __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Re: [R] dataframe: visualization as tiles(?)

2004-04-13 Thread Jason Turner
> > Dear R users, > > I remember seeing somewhere a method of visualizing a set of > observations on two variables x and y in the following way Is this what you want? > ## fake data > zz <- data.frame(x=sample(0:1,20,rep=T),y=sample((-1:1),20,rep=T)) > zz > ## tabulate it > zz.tab <- data.frame(

Re: [R] How does nlm work?

2004-04-13 Thread Jason Turner
> 3) I have never heard of this step selections (line search, dogleg and > optimal step). I would like to know something about it. I would > appreciate if someone could send references for me to learn the subject. IIRC, you'll find them here: Nonlinear Regression Analysis and Its Applications Dou

Re: [R] Line numbers in error messages

2004-04-12 Thread Jason Turner
Webb Sprague wrote: I already use ESS. If it would give line numbers, my life would be perfect! It does, if you don't use source(). Have your R code in one buffer, and the R session running, and (from the code buffer), type C-c C-l. Cheers Jason __

Re: [R] Getting R to complete a web form

2004-04-08 Thread Jason Turner
Corey Moffet wrote: Dear R-Help, I am testing a web based erosion model and I would like to get R to submit the http requests. Now I make the requests manually and use R to extract the results by scan()ing a url() connection. It would be nice if I could fully automate the process. Any ideas/ex

Re: [R] Evaluating AIC

2004-04-08 Thread Jason Turner
Bret Collier wrote: R Users, I was just wondering if anyone has written a program (or if there is a package) out there that calculates the different derivations of AIC ... I did not see anything on the help pages (or in packages, but I could have missed it) ... [EMAIL PROTECTED] mail

Re: [R] outliers

2004-04-08 Thread Jason Turner
[EMAIL PROTECTED] wrote: Dear all I would like to represent the outliers in the plot. These few outliers are much larger than the limit of 50 in the ylim-argument. plot(daten$month~daten$no,ylim=c(0,50)) I know that it is possible to introduce the information about the presence of outliers wi

Re: [R] a question about levelplot

2004-04-07 Thread Jason Turner
See the FAQ http://cran.r-project.org/doc/FAQ/R-FAQ.html#Why%20do%20lattice%2ftrellis%20graphics%20not%20work%3f 陳啟德 wrote: > Hello everyone > > I met a strange problem when I call "levelplot" in another function > > >>library(lattice) >>mat = matrix(1:9, nrow=3) >>mylevelplot = function() {

Re: [R] Syntax Question

2004-04-06 Thread Jason Turner
> I have a large data structure that looks like: > >> strsplit(st,",")[14395] > [1] "KGEG" > [2] "SA => KGEG" > [3] "72785" > [4] "47.62139" > [5] "-117.52778" > [6] "723" > [7] "WA" > [8] "US" > [9] "2" > [10] "SPOKANE SPOKANE INTERNATIONAL AIRPORT" > [11] "1" > > > I'd like to be able to

Re: [R] Ignorant lack of bliss : summarise table by column attribute

2004-04-06 Thread Jason Turner
Using the data you supplied, and the work you've done so far, I also did this: ## make sure R knows that "group" isn't numeric ## might not be necessary, depending how you imported your data. results$group <- factor(results$group) Since you attached the data frame, then altered it, a warning is i

Re: [R] x-only zoom and pan?

2004-04-04 Thread Jason Turner
> Could the following be done without too much grief...? It sounds possible, but there are already packages that deal with these issues. Some suggestions: 1) Use SVG plots, and Adobe's SVG Viewer plug-in for various web browsers. See the RSvgDevice package for details. 2) Use the Java graphics

Re: [R] boot question

2004-04-01 Thread Jason Turner
> What in the world am I missing?? stype. As in (from help(boot) stype: A character string indicating what the second argument of statistic represents. Possible values of stype are '"i"' (indices - the default), '"f"' (frequencies), or '"w"' (weights). This work

Re: [R] How to cluster the variables instead of data points?

2004-03-31 Thread Jason Turner
> Do you know if there are some specific functions under R > to do clustering? > To be specific, I have a d-dimensional vector x, and wish > to clustering these d variables of x into some finite groups > given self-defined distance measure. Not sure what you want, as the above could be interpreted

Re: [R] Zero Index Origin?

2004-03-31 Thread Jason Turner
> I don't really wish to go into all of the reasoning why this > convenience is important to DSP applications. I do some DSP work, in the context of instrumentation signal filtering, identification, tracking, and coherence (finding plant signals that have similar "fingerprints"). I agree that in

Re: [R] if block and brackets

2004-03-24 Thread Jason Turner
> what is wrong with this if structure? I am > getting an error on the line where "else" is > > thanks > > if (exists("f")){ > dt <- read.csv(file.path(d,f),header=F)#data frame > builddl(dt,f) > else The block started by "if(...){" isn't complete - it needs a matching "}" before it is

Re: [R] save GUI window position in windows version?

2004-03-17 Thread Jason Turner
SI wrote: > Hi, > > thanks for your reply. But I guess I misfired a > question. > > I want to save the size of _GUI_ window, NOT console > window. GUI window is the window with "RGui" One option to consider is to start R in "sdi" mode. My shortcut for R-1.8.1 on WinXP is... "C:\Program File

Re: [R] save to file

2004-03-17 Thread Jason Turner
?dump ?savehistory Icabalceta, Jorge L. wrote: Dear friends, In R there is a file | save to file option which takes a "picture" of the text in your screen and saves it to a text file. Is there any way to do the same with a function? __ [EMAIL PROTECT

Re: [R] R-business case

2004-03-16 Thread Jason Turner
giovanni merola wrote: Dear all, I am putting together a business case for R and I would like to know if there exist statistics on the distribution of R in academia, research and commercial institutions. The same information about S-plus would be welcome. Please reply only if you have consistent

Re: [R] Sweave and R output: possible to suppress "Schunk" tags in *.tex file output?

2004-03-16 Thread Jason Turner
[EMAIL PROTECTED] wrote: results=tex will do what you want, i.e., produce no Soutput and Schunk environments. you may also want to look at package xtable. Just to add, the function latex() in the Hmisc package is also quite good. Cheers Jason __ [EMAIL

RE: [R] minimum value

2004-02-25 Thread Jason Turner
I almost said the same. But he wanted the index. which.min(v) > > min(v) > > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of li xian > Sent: Wednesday, February 25, 2004 8:46 PM > To: [EMAIL PROTECTED] > Subject: [R] minimum value > > > suppose I hav

Re: [R] return value in function

2004-02-25 Thread Jason Turner
> suppose I have a function example: > > getMatrix <- function(a,b){ > > A1<-diag(1,2,2) > > } > > If I want to get the both the A1 and dim(A1) from the function, Can I do > > return(A1,dim(A1)) inside the function ? And how can I access A1 and > dim(A1) later on? The general approach for thi

Re: [R] (no subject)

2004-02-24 Thread Jason Turner
> Some functions create objects for which extractor functions are written > to pull out some partial result. > > I wish to extract partial results from functions without extractor > functions: > for example, to pass a vector of results to another function. There isn't a general solution to this pr

Re: [R] Suggestions ?!?!

2004-02-24 Thread Jason Turner
"ivo welch" <[EMAIL PROTECTED]> said... > * Finally, a more complex question: I have a historical rate of stock > return series (yes, I teach finance). I would like to make a ts plot on > the left (plot(date,returns,type="h")), and a plot(density(returns)) on > the right. works nicely with par(mf

Re: [R] MiceR

2004-02-22 Thread Jason Turner
> has anyone got some advise about loading MiceR, ... > I note from the web page that MiceR is described as a package for Unix > and I am running R on Windows XP. Does it make a difference to the > package? Rather a lot. You can 1) compile it yourself and build a binary for windows 2) ask the

Re: [R] Does pdf() not work on Trellis graphics?

2004-02-19 Thread Jason Turner
See the FAQ, 7.24. you need to print(xyplot(x~y)) > Hello, > > I have the following example. > > testpdf <- function(x,y){ > pdf() > #plot(x,y) > xyplot(x~y) > dev.off() > } > > > source("testpdf.R") > x=1:1000 > testpdf(x,x) > > with "xyplot", the output is a file that can not be > rea

Re: [R] boostrapping at R

2004-02-18 Thread Jason Turner
> Friends: > > How can I do boostrapping at R? > > Thanks library(boot) help(boot) Cheers Jason __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-

Re: [R] Complex conjugate?

2004-02-18 Thread Jason Turner
> Is there a function in R that returns the complex conjugate of a matrix > (a la 'CONJ' in IDL or 'Conjugate' in Mathmatica)? > ?complex Cheers Jason __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do re

Re: [R] C-Code

2004-02-12 Thread Jason Turner
> Can you assist me of a C-code or a compiled c-code for the > statistics-functions that exist in R. > Easy. Just download the latest source verion - it's all open, and there for you to see. Most of the functions have self-descriptive file names. http://cran.r-project.org/src/base/R-1.8.1.tgz

Re: [R] Basic Help

2004-02-12 Thread Jason Turner
> OK I have been trying to learn how to use this program and I cannot even > import any data into it. I have downloaded all the manuals but they do > not > seem to help. Is there a book on R for dummies??? I don't know about dummies, but Peter Dalgaard's book, "Introductory Statistics with R" is

Re: [R] Density Plots

2004-01-04 Thread Jason Turner
David Tyler wrote (using an e-mail client that doesn't wrap lines): I am using an older version of R (1.6.2) to run a Monte Carlo > simulation, generating 10,000 samples per 'run'. When I plot > histograms I get the expected 'bins' on the x-axis and the > frequency distribution on the y-axis. H

Re: [R] Sweave question

2003-12-26 Thread Jason Turner
Rafael A. Irizarry wrote: Using Sweave in the tools library (R version 1.8.0: sorry i havent upgraded), it seems i cant use if statements in R chunks that make graphs. i have this: <>= par(mfrow=c(1,1)) if(exists("x")) plot(x,x) else{ plot(1,1,type="n") text(1,1,"data not available.\n") }

Re: [R] Sweave/LaTeX Problem with EPS PDF

2003-12-20 Thread Jason Turner
Harold Doran wrote: [... Sweave use...] However, when I examine the pdf or eps files created, there is nothing there. When I view the EPS using Ghostview, the file > is empty, but there appears to be a bounding box surrounding > nothing. When I open the pdf graphic, there is nothing there > either

Re: [R] diagnostic information ....

2003-12-18 Thread Jason Turner
Whoops. That should be a "&&" where I put a "||". naPrint <- function(model,...) { if(!inherits(model,"lm") && !inherits(model,"glm")) stop("no support for class ",class(model),"\n") if(!is.null(model$na.action)) { action <- paste("na.action:",attr(model$na.action,"class")

Re: [R] diagnostic information ....

2003-12-18 Thread Jason Turner
Rolf Turner wrote: Paul E. Johnson wrote: I handed out some results from glm() and the students ask "how many observations were dropped due to missing values"? How would I know? ... It would be ***VERY*** easy to write a wrapper for glm() to include the number of dropped observations if you

Re: [R] Asking for help

2003-12-17 Thread Jason Turner
Mehdi Kadiri wrote: Hello evry one, I'm a frensh consulting Engineer in statistics and i work under R times to times. I would like to build an Graphic User Interface as we can do under MS Excel but i don't know how to do it. If you want to program the interface in VB, you can use the tools in thi

Re: [R] Rd files Assignment functions.

2003-12-16 Thread Jason Turner
wolski wrote (using a mail client that doesn't wrap lines): ... Cannot handle Rd file names containing '<'. These are not legal file names on all R platforms. Please rename the following files and try again: man/[[<-.caliblist.Rd man/[<-.massvectorlist.Rd man/[[<-.massvectorlist.Rd Ok. It doe

Re: [R] Resampling Stats software

2003-12-15 Thread Jason Turner
Brandon Vaughn wrote: ... I am new to R (I have most of my experience in SAS and SPSS). I was wondering if anyone has used both Resampling Stats and R, and could comment on strengths/relationships. There are a few add-on packages for resampling with R. "boot" is the one I've used, and can stro

Re: [R] Session Logging

2003-12-12 Thread Jason Turner
Stan Smiley wrote: Is there a better way to log all the session input and output from within R? What everyone else said, plus ?savehistory Cheers Jason -- Indigo Industrial Controls Ltd. http://www.indigoindustrial.co.nz 64-21-343-545 [EMAIL PROTECTED]

Re: [R] packaging standards for rda files?

2003-12-11 Thread Jason Turner
Paul Johnson wrote: ... We used the fine foreign library to bring in an SPSS dataset that was about 9 megabytes and I can squeeze it into a much smaller R object using compression with save(ndat, file="NatAnnES2000.rda", compress=T). ... how do people put in the meta information that appears in

Re: [R] expressing functions

2003-12-09 Thread Jason Turner
Remington, Richard wrote: # Why does expressing one function require(ctest) t.test # return only function (x, ...) UseMethod("t.test") # but expressing another function shapiro.test # returns more complete code? function (x) { DNAME <- deparse(substitute(x)) x <- sort(x[complete.cases

[R] OT: BibTex year-only citation in text?

2003-12-09 Thread Jason Turner
Sorry for the off-topic question, but I know there are some talented LaTeX users out there. Which bibliography style gives only the year in text citations (e.g "for further details, see Anderson (1992)" )? Thanks Jason -- Indigo Industrial Controls Ltd. http://www.indigoindustrial.co.nz 64-21-3

Re: [R] How to append to a data.frame?

2003-12-09 Thread Jason Turner
David Kreil wrote: Ok, how can I both allocate storage and specify column names in a data.frame call, please? Apologies if I'm being slow here. With many thanks again, David. Something like (UNTESTED code follows) templateColumn <- rep(NA,1000) # for 1000 rows foo <- data.frame( x = temp

Re: [R] Windows Memory Issues

2003-12-06 Thread Jason Turner
Richard Pugh wrote: ... I have run into some issues regarding the way R handles its memory, especially on NT. ... Actually, you've run into NT's nasty memory management. Welcome! :) R-core have worked very hard to work around Windows memory issues, so they've probably got a better answer than

Re: [R] Precision

2003-12-06 Thread Jason Turner
forkusam wrote: Hi, I would like to increase the Precision of R by increasing the Number of decimal places in calcultaions. I get about 7 decimal places and would like to have over 15. is the a means to inflence this? R uses double-precision for *all* internal floating point numbers. These ar

Re: [R] rcmd check question.

2003-12-05 Thread Jason Turner
Wolski wrote: ... Can anyone tell what may causes the following errors? They printed during a rcmd check packagename * checking S3 generic/method consistency ... WARNING Error in .tryQuietly({ : Error in file(file, "r") : unable to open connection Execution halted ... In the directory where you i

Re: [R] bug in as.POSIXct ?

2003-12-04 Thread Jason Turner
[EMAIL PROTECTED] wrote: My particular problem was much simpler. I had a bunch of data from a data acquisition system with sampling interval of 1 minute. The system used a simple compression scheme, where a data point was reported only when the change in response was sufficiently large. For exam

Re: [R] bug in as.POSIXct ?

2003-12-04 Thread Jason Turner
[EMAIL PROTECTED] wrote: I think that there is a bug in the as.POSIXct function on Windows. Here is what I get on Win2000, Pentium III machine in R 1.8.1. dd1 <- ISOdatetime(2003, 10, 26, 0, 59, 59) dd2 <- ISOdatetime(2003, 10, 26, 1, 0, 0) dd2 - dd1 Time difference of 1.000278 hours Now, the

Re: [R] add a point to regression line and cook's distance

2003-12-03 Thread Jason Turner
[EMAIL PROTECTED] wrote: Hi, MY question is like the following: I would like to have a robust regression line. The data I have are > mostly clustered around a small range. So the regression line tend to be influenced strongly by outlier points > (with large cook's distance). From the applicati

Re: [R] Two questions about the creating new package

2003-12-02 Thread Jason Turner
Song Baiyi wrote: Hello everyone, I am just trying to colloct all my function into a new packages. I met two questions which hurt me so much: 1. when I use the "prompt" to help to write Rd file for a variable x which is character vector, say x <- c("a","b"), it always give the error informaio

  1   2   3   >