Displaying 3 results from an estimated 3 matches for "stop2".
Did you mean:
stop
2010 Jun 24
1
?to calculate sth for groups defined between points in one variable (string), / value separating/ spliting variable into groups by i.e. between start, NA, NA, stop1, start2, NA, stop2
...6, 7, 8, 9,10,11, 12,13,14,15,16,17 )
c0
c1<-rbind(10, 20 ,30,40, 50,10,60,20,30,40,50, 30,10, 0,NA,20,10.3444)
c1
c2<-rbind(NA,"Start1",NA,NA,"Stop1",NA,NA,NA,NA,NA,NA,"Start2",NA,NA,NA,NA,"Stop2")
c2
C.df<-data.frame(cbind(c0,c1,c2))
colnames(C.df)<-c("c0","c1","c2")
C.df
# preparation of form for explaining further needed result (next 3 lines are not needed indeed, they are only to explain how to obtain final result
c3<-rbind(NA,"Start1...
2012 Sep 17
2
Creating missingness in repeated measurement data
...=1 or stat = =0, the remaining rows for an
individual subject is set to NA by using a new variable d (that states
the exact time this
happened from the stop variable). By this I mean dat2 that looks like,
id <- rep(a, c(3,2,3))
sta2<- c(1,1,NA,1,NA,1,NA,NA)
g2<- c(0,0,NA,0,NA,0,NA,NA)
stop2 <- c(1,2,NA,2,NA,1,NA,NA)
d <- c(4,4,NA,4,NA,1.5,NA,NA)
dat2 <- data.frame(id=id, stat2=sta2, g2=g2,stop2=stop2,d=d).
Thank you very much!
John
[[alternative HTML version deleted]]
2009 Oct 20
3
Transparent Bands in R
Hello All,
My question is regarding the attached plot. I would like to have multiple
transparent green bands running the length (yaxis) of the plot the width of
which is determined by the green lines at y=0 in the plot. Can you suggest a
way to do it?
For those who can't or are unwilling to download the file the plot is at
http://www.twitpic.com/ma8w0
Thanks!