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
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
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
#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
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
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
6 matches
Mail list logo