search for: kkg151gp

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

2005 Apr 06
2
conditional selection with Factors
Hi All, I want to select a level of a factor variable from a dataset. I have the folowing data: dataset: use factor: month (use$month, levels=February, July) > use[1:5,] month registration use department size 1 February KKG151GP Y Safety 1.6 To select February I tried: > use[use$month=="February"] Error in "[.data.frame"(use, use$month == "February") : undefined columns selected > use[use$month == levels(use$month)[1]] Error in "[.data.frame"(use, use$month ==...