search for: zinclud

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

Did you mean: includ
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