search for: restrut

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

Did you mean: restruct
2011 Feb 04
1
dataframes from a function
...r example..... sub<-c("6-1a","6-1a","6-1a","9-2b","9-2b","9-2b","7c","7c","7c") yar<-rep(1991:1993,3) x1n<-c(4,6,3,6,4,7,9,4,2) y1m<-c(3,7,5,8,4,3,6,7,8) prac<-data.frame(sub,yar,x1n,y1m) plot.restrut<-function(org.plot,ex.plot) { new.pl<-org.plot[org.plot$sub %in% ex.plot,] new.pl.st<-new.pl[new.pl$yar %in% "1991",] new.pl.fin<-new.pl[new.pl$yar %in% "1993",] print(new.pl) print(new.pl.st) print(new.pl.fin) } plot.restrut(prac,"9-2b") ###### I would l...