search for: nopg

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

Did you mean: nop
2002 Mar 19
2
Selecting cases from a data frame
...ysis on a subset of that data frame, defined as the subset for which the value of OGMCAT (a column in the data frame) is anything OTHER than 9, 11, or 12. So I'd like to define a new data frame that consists of the same variables as in acps.df, but without those cases. I tried this: > acps.nopg.df<-acps.df[(acps.df$OGMCAT != 9) & (acps.df$OGMCAT != 11) & (acps.df$OGMCAT != 12)] but got this: Error in "[.data.frame"(acps.df, (acps.df$OGMCAT != 9) & (acps.df$OGMCAT != : undefined columns selected Thanks for any advice. --------------------------------...