Re: [R] lattice panel.lmline problem

2007-09-10 Thread Frede Aakmann Tøgersen
Why not use the more simple xyplot(total.fat~x|variable,groups=Group, data=tmp1,type=c(p,r)) ??? See ?panel.xyplot and especially the type argument of that panel function. Best regards Frede Aakmann Tøgersen Scientist UNIVERSITY OF AARHUS Faculty of Agricultural Sciences Dept

Re: [R] overlay lattice histograms with goodness-of-fit pdfs

2007-09-10 Thread Frede Aakmann Tøgersen
* station, data = sta.stack subset = type==precip month %in% c(Dec, Jan, Feb), xlab = Precipitation (mm)) Med venlig hilsen Frede Aakmann Tøgersen -Oprindelig meddelelse- Fra: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] På vegne af Brad Christoffersen Sendt: 10

Re: [R] contourplot lines, text, and mtext

2007-09-06 Thread Frede Aakmann Tøgersen
,...){ panel.contourplot(x,y,z,...) panel.abline(0,1,lwd=5,col=blue) }) Med venlig hilsen / Regards Frede Aakmann Tøgersen Forsker / Scientist AARHUS UNIVERSITET / UNIVERSITY OF AARHUS Det Jordbrugsvidenskabelige Fakultet / Faculty

Re: [R] [Lattice] Incrase the height of strips in Trellis plots

2007-09-05 Thread Frede Aakmann Tøgersen
one more familiar with the lattice package can solve this. Best regards Frede Aakmann Tøgersen Scientist UNIVERSITY OF AARHUS Faculty of Agricultural Sciences Dept. of Genetics and Biotechnology Blichers Allé 20, P.O. BOX 50 DK-8830 Tjele Phone: +45 8999 1900 Direct: +45 8999 1878 E-mail

Re: [R] nls() and numerical integration (e.g. integrate()) workingtogether?

2007-08-23 Thread Frede Aakmann Tøgersen
. integrate(f,0,1,x1=x1,b1=.5) Note that we have the parameters x1 and b1 to f through the ... argument. You'll see some error message relating to the problem with different lengths of vectors. You need to resolve this problem before continuing. Med venlig hilsen / Regards Frede Aakmann Tøgersen

Re: [R] R and excell differences in calculation F distributionfunction

2007-08-07 Thread Frede Aakmann Tøgersen
I think you'll have to compare FDIST to pf() and not df() Best regards Frede Aakmann Tøgersen Scientist UNIVERSITY OF AARHUS Faculty of Agricultural Sciences Dept. of Genetics and Biotechnology Blichers Allé 20, P.O. BOX 50 DK-8830 Tjele Phone: +45 8999 1900 Direct: +45 8999 1878 E-mail

Re: [R] Problems using lm in combination with predict

2007-08-06 Thread Frede Aakmann Tøgersen
this newdate=data.frame(Worktime = 324, Vacation = 123, Illness = 0.9, Bankholidays = 0.1))? Best regards Frede Aakmann Tøgersen Scientist UNIVERSITY OF AARHUS Faculty of Agricultural Sciences Dept. of Genetics and Biotechnology Blichers Allé 20, P.O. BOX 50 DK-8830 Tjele Phone: +45 8999

Re: [R] getting values from arrays using which()

2007-07-05 Thread Frede Aakmann Tøgersen
ndx - which(myArray=99 , ind.arr=T) cbind(ndx, myArray[ndx]) Best regards Frede Aakmann Tøgersen Scientist UNIVERSITY OF AARHUS Faculty of Agricultural Sciences Dept. of Genetics and Biotechnology Blichers Allé 20, P.O. BOX 50 DK-8830 Tjele Phone: +45 8999 1900 Direct: +45 8999 1878 E

Re: [R] R difftime function: How can we fix the difftime unit?

2007-03-21 Thread Frede Aakmann Tøgersen
That's easy: difftime(x, y, units = min) Best regards Frede Fra: [EMAIL PROTECTED] på vegne af d. sarthi maheshwari Sendt: to 22-03-2007 07:03 Til: r-help@stat.math.ethz.ch Emne: [R] R difftime function: How can we fix the difftime unit? Hi, I am trying

Re: [R] CPU usage on Windows

2007-03-19 Thread Frede Aakmann Tøgersen
it because I couldn't provide a small reproducable example. I have noticed this over several versions of Emacs (21.2 - 22.1), ESS ( 5 - 5.4) and Windows 98/NT/XP. Frede Aakmann Tøgersen Forsker / Scientist AARHUS UNIVERSITET / UNIVERSITY OF AARHUS Det

Re: [R] Extracting a subset from a dataframe

2007-02-22 Thread Frede Aakmann Tøgersen
Augusto cnd - D1$dates %in% D2$dates D1[!cnd,] should do it. Med venlig hilsen / Regards Frede Aakmann Tøgersen Forsker / Scientist AARHUS UNIVERSITET / UNIVERSITY OF AARHUS Det Jordbrugsvidenskabelige Fakultet / Faculty of Agricultural Sciences Forskningscenter

Re: [R] importing timestamp data into R

2007-01-04 Thread Frede Aakmann Tøgersen
= [%Y/%m/%d %H:%M:%S ])) # The value of strptime has class POSIXlt and needs to be converted to POSIXct tid2 - tid for (i in 1:2) tid2[,i] - time.conv(tid2[,i]) print(tid2) str(tid2) class(tid2[,1]) Med venlig hilsen Frede Aakmann Tøgersen -Oprindelig meddelelse- Fra: [EMAIL

Re: [R] About compositional data analysis

2006-10-17 Thread Frede Aakmann Tøgersen
= 1986, series = Monographs on Statistics and Applied Probability, address = London, annote = A greatly expanded version of the original 1982 paper, with lots of examples of hypothesis testing } Med venlig hilsen Frede Aakmann Tøgersen -Oprindelig meddelelse- Fra: [EMAIL

[R] Different result from nls in R-2.2.1 and R-2.3.1

2006-09-21 Thread Frede Aakmann Tøgersen
related to this difference between lines of code from nls: R-2.2.1: mf - as.list(eval(mf, parent.frame())) R-2.3.1: mf - eval.parent(mf) n - nrow(mf) mf - as.list(mf) where n is being defined in the scope of nls in the latest version? Best regards Frede Aakmann

Re: [R] problem with integrate() - correction

2006-06-22 Thread Frede Aakmann Tøgersen
to do it. Med venlig hilsen Frede Aakmann Tøgersen -Oprindelig meddelelse- Fra: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] På vegne af Rainer M Krug Sendt: 22. juni 2006 14:03 Til: [EMAIL PROTECTED] Cc: R help list Emne: [R] problem with integrate() - correction Sorry

Re: [R] A question about stepwise procedures: step function

2006-06-16 Thread Frede Aakmann Tøgersen
Well Jia, you use 'all' as a name for your dataframe, but this is also a function, see ?all. If I try it with mydata - data.frame(z1,z2,z3) all goes well. Med venlig hilsen Frede Aakmann Tøgersen -Oprindelig meddelelse- Fra: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] På

Re: [R] When calling external C-function repeatedly I get differentresults; can't figure out why..

2006-03-09 Thread Frede Aakmann Tøgersen
Not an expert in programming either, but to me it seems like you've forgotten to initialize the variable tr. It just picks up garbage from allocated memory previously initialized by other processes. Med venlig hilsen Frede Aakmann Tøgersen -Oprindelig meddelelse- Fra: [EMAIL

Re: [R] indexing within panels in xyplot

2006-02-20 Thread Frede Aakmann Tøgersen
Based on your two first sentences I think the solution is to use xyplot(y ~ x | facA, groups = facB, data = toydf,type=c(p,r)) Try it and see if this is what you want. Best regards Frede Aakmann Tøgersen Scientist Danish Institute of Agricultural Sciences Research Centre Foulum Dept

Re: [R] lattice: combining panel.xyplot with panel.abline - is thispossible?

2006-01-30 Thread Frede Aakmann Tøgersen
' is I have used 'dat'. Best regards Frede Aakmann Tøgersen Scientist Danish Institute of Agricultural Sciences Research Centre Foulum Dept. of Genetics and Biotechnology Blichers Allé 20, P.O. BOX 50 DK-8830 Tjele Phone: +45 8999 1900 Direct: +45 8999 1878 E-mail: [EMAIL PROTECTED] Web

Re: [R] paste argument of a function as a file name

2005-11-10 Thread Frede Aakmann Tøgersen
Why not use something like MY.function - function(x){ filn - deparse(substitute(x)) filename - paste(filn,xls,sep=.) ... ... write.table(x,file=filename) } Med venlig hilsen Frede Aakmann Tøgersen -Oprindelig meddelelse- Fra: [EMAIL PROTECTED] [mailto:[EMAIL

Re: [R] spline.des

2005-10-04 Thread Frede Aakmann Tøgersen
Hey The function spline.des is in the splines package. You need to do library(splines) before you have the full functionality of the fda package. Best regards Frede Aakmann Tøgersen -Oprindelig meddelelse- Fra: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] På vegne af