search for: studylong

Displaying 1 result from an estimated 1 matches for "studylong".

Did you mean: studying
2011 Mar 02
1
how to delete empty levels from lattice xyplot
...t;9","12","13") sequence <- c(rep('for/sal', 7), rep('sal/for', 6)) treat1 <- c(rep('for', 7), rep('sal', 6)) treat2 <- c(rep('sal', 7), rep('for', 6)) study <- data.frame(id, sequence, treat1, pef1, treat2, pef2) studyLong <- as.data.frame(rbind(as.matrix(study[,c('id', 'sequence', 'treat1', 'pef1')]), as.matrix(study[,c('id', 'sequence', 'treat2', 'pef2')]))) colnames(studyLong) <- c('id', 'sequence'...