search for: coupleid

Displaying 2 results from an estimated 2 matches for "coupleid".

Did you mean: coupled
2013 Jan 22
0
Plotting error while using ggplot facet
...can be found on https://www.dropbox.com/s/a6d13bkjiu7uy2q/facet%202%20subplots.png The code I used is as follows: watersurf <- read.table("watersurf1.csv",sep=",",header=TRUE) watersurf[1:100,] ggplot(data=watersurf,aes(x=time,y=data))+geom_line()+facet_wrap(~id) watersurf$coupleid <- factor(rep(unlist(by(watersurf$id,watersurf$group, function(x) {ave(as.numeric(unique(x)),FUN=seq_along)} )),each=6239)) p <- ggplot(data=watersurf,aes(x=time,y=data,group=id))+geom_line(aes(linetype=gr...
2011 Nov 13
4
identify duplicate from more than one column
Hi all, I've searched everywhere to try to find out how to do this and have had no luck. I am trying to construct identifiers for couples in a dataset. Essentially, I want to identify couples using more than one column as identifiers. Take for instance: obs unit home z sex age 1 015029 18 1 1 053 2 015029 18 1 2 049 3 015029 01 1 1 038 4 015029 01 1