search for: ex10ss

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

Did you mean: ex10s
2012 Jun 22
3
removing NA from a data frame
...in by 'recode' from the car library; I'm trying to eliminate cases with particular factor levels) > table ( ex10s$dg ) 0 1 2 3 4 5 NA 2851 271501 63112 98425 335593 1257299 160795 So, I remove the rows with NAs, to a new dataframe ex10ss: > ex10ss<-na.omit(ex10s) Check all the NAs have been removed: > table(ex10ss$dg) 0 1 2 3 4 5 NA 2851 271501 63112 98425 335593 1257299 160795 > dim(ex10s) [1] 2189576 5 > dim(ex10ss) [1] 2189576 5 Nothing seems to...