search for: y1m

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

Did you mean: y1
2011 Feb 04
1
dataframes from a function
...mes and with unique names relating to the variable they are based on. For 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...