[R] xyplot question

2009-06-30 Thread jlfmssm
ng code: attach(mydata) library(lattice) xyplot(S~t|ID,type="b") Now I want to label the line from -3 to -1 with one type( for example, red with "*") , the line from 0 to 3 with another type(blue with"o"), and give text label says: red "*"="FDP"

[R] another xyplot question

2009-07-01 Thread jlfmssm
= list(at=c(min(d),d[which (t==0)],max(d)),alternating =c(1,2))),key = Key,cex = 2,type = "b") Actually, I want to have : location of tick marks along the axis is: For A 1,3,7 because for A min(d)=1 d[which(t==0)]=3 max(d)=7 For B 1,4,7 min(d)=1 d[which(t==0)]=4 max(d)=7 But the locat

[R] a question about splint

2009-07-06 Thread jlfmssm
I am using splint to perform cubic spline interpolation, but I don't know how this function set up knots? Does anyone know about this? Thanks, jlf [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/m

[R] splint

2009-07-08 Thread jlfmssm
I am trying to understand idea for splint, but it use Fortran code. Does anyone know how to see that Fortran code? Is splint a not-knot spline method? Thanks, jfm [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https

[R] error for installation

2009-07-15 Thread jlfmssm
I used packages 'fields". when I load workspace again, then do installation again. I get the following error. I read R for Windows FAQ (4.8 see below), but I still can't figure it out. Does anyone can help me out? Thanks, jlm > install.packages("fields",repos="http://streaming.stat.iastate.ed

[R] a question about replacing a column that is factor

2009-07-24 Thread jlfmssm
Hi, everyone, I want to use a new value to replace a column that is a factor. However this column is replaced by , which is not what I want. I know this is because the new value is not in the levels of that column, but I don't know how to fix it. Can someone help me to figure this out? The follo

Re: [R] a question about replacing a column that is factor

2009-07-25 Thread jlfmssm
change > > $ID==69912008 > $ID %in% c(69912008,) > > Good luck, > > milton > > > > > On Fri, Jul 24, 2009 at 10:33 PM, jlfmssm wrote: > >> Hi, everyone, >> >> I want to use a new value to replace a column that is a factor. However >> thi

[R] Cochran’s Q statistic

2009-06-04 Thread jlfmssm
Does anyone know which package include the computation of CochranÂ’s Q statistic in R? jlfmssm [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting

[R] Hedges g statistic

2009-06-04 Thread jlfmssm
which package have Hedges g statistic calculation in R? [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guid

[R] question about read.xls

2009-06-05 Thread jlfmssm
I am woking on Windows and using read.xls to read Excel.xls file. But it needs to install perl on my machine first, and then give the following until it can work: read.xls(file,sheet=i,perl="E:\\Perl\\bin\\bin\\perl.exe"); I am wondering if there is other way to read Excel.xls file without needi

[R] ask for help xyplot

2009-06-23 Thread jlfmssm
I want to make such plot using the following data set plot Mean with Sd(+/-) by Dim group by Lac here is data Does anyone know how to plot using xyploy Thanks, Aimin Mean Sd Var Min Max Dim Lac 704 44.0 NA NA 44.0 44.0 -30 3 703 45.9200

[R] Read files in a folder when new data files come

2010-01-24 Thread jlfmssm
Hello, I am working on a project. The new data files is coming as the data collectors get data, then the data collectors put these new data files in a folder. I need to read these new data files when they are in folder. so far, I did this job manually, that is to say, each time I go to that folder

Re: [R] Read files in a folder when new data files come

2010-01-24 Thread jlfmssm
gt; You would then rewrite your flag file to update its modification date > for the next round. > > Does this do what you want? > > On Sun, Jan 24, 2010 at 3:05 PM, jlfmssm wrote: >> Hello, >> >> I am working on a project. The new data files is coming as the data &