On Thu, Dec 17, 2015 at 01:50:29PM +0100, g.maub...@weinwolf.de wrote: > Dear All, > > I am new to "R" and search for a solution to exclude cases if a certain > variable contains NA for a case. > ... > I would like to create a subset excluding case 3 Miller NA. > > I tried to following: > > new_dataset <- subset(dataset, subset = Turnover != NA) > > This does not work. The new_dataset contains all variables but not cases > are left. R responds "Variables with all observations missing". > > How could I do it right? > ....
Please review the documentation for na.omit() (and related functions. Peace, david -- David H. Wolfskill r...@catwhisker.org Those who would murder in the name of God or prophet are blasphemous cowards. See http://www.catwhisker.org/~david/publickey.gpg for my public key.
signature.asc
Description: PGP signature
______________________________________________ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.