[R] deleting columns from a dataframe where NA is more than 15 percent of the column length
Faz Jones
jonesfaz4 at gmail.com
Mon Aug 6 03:04:43 CEST 2012
I have a dataframe of 10 different columns (length of each column is
the same). I want to eliminate any column that has 'NA' greater than
15% of the column length. Do i first need to make a function for
calculating the percentage of NA for each column and then make another
dataframe where i apply the function? Whats the best way to do this.
More information about the R-help
mailing list