Re: [R] two apparent anomalies

2011-01-22 Thread Moritz Grenke
quot;world","!")) there are differences (in parameters) for "as.factor" and "factor" as well. Type ?factor Moritz Grenke http://www.360mix.de > Thanks for both responses. > is there a difference

Re: [R] two apparent anomalies

2011-01-22 Thread Moritz Grenke
to reduce levels you need to tell R. > levels(a[1:3, drop=TRUE]) [1] "a" "b" Moritz Grenke http://www.360mix.de -Ursprüngliche Nachricht- Von: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] Im Auftrag von analys...@hotmail

Re: [R] complex transformation of data

2011-01-21 Thread Moritz Grenke
Hi Denis, #minimal example: test<-as.data.frame(list(id=c(1,1,1,2,2,2), cycle1=c("c", "m", "f", "m", "f", "c"))) #gettin your first cell of Result 1 paste(sort(test$cycle1[test$id==1]), collapse="") Hope this helps

Re: [R] data and parameters

2011-01-21 Thread Moritz Grenke
#dummy data: master=as.data.frame(list(clientId=c(1:4,2), date=1001:1005, value=10001:10005)) control=as.data.frame(list(clientId=c(2,3), mindate=c(100,1005), maxdate=c(1005,1005), control.params=c(1,2))) #reducing master df: #generating "TRUE FALSE index": idIndex=master$clientId %in% control$cli

Re: [R] Scale of 2nd y-axis

2011-01-20 Thread Moritz Grenke
type="b") axis(4, at=pretty(c(0,max(burnMeans)),n=4)*scaleFactor, labels=pretty(c(0,max(burnMeans)),n=4)) Explanation: I'm using only "one plot". The BurnMeans are scaled by scaleFactor and plotted into the first plot with lines(). For the axis I'm using the scaled &quo

Re: [R] Identify duplicate numbers and to increase a value

2011-01-20 Thread Moritz Grenke
ards Moritz ________ Moritz Grenke http://www.360mix.de -Ursprüngliche Nachricht- Von: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] Im Auftrag von Ortiz, John Gesendet: Donnerstag, 20. Januar 2011 16:13 An: r-help@r-project.org Betreff: [R] Identify duplicate numbers and