search for: zinclude

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

Did you mean: include
2007 Jun 13
1
how to optionally include variables in a data.frame at assignment
...Is there a way to accomplish this in the original assignment? Or must I first create the core data.frame with the variables I always want and then use if blocks to add other variables? Basically, I'm hoping for something like this (which does not work): newDat <- data.frame(x, y, if(zInclude) z else NULL) Thanks, Jenny