delete_na

0th

Percentile

Delete cases with set amount of missing values

Delete cases with set amount of missing values

Usage
delete_na(df, n = ncol(df) - 1)
Arguments
df

A data.frame,

n

Number of NAs allowed, defaults to ncol(df) - 1.

Value

A filtered version of the input data.frame.

Note

Adapted from http://stackoverflow.com/a/30461945/409362.

Aliases
  • delete_na
Examples
# NOT RUN {
df <- data.frame(x = sample(c(1:10, NA), 10),
                 y = sample(c(1:10, NA), 10),
                 z = sample(c(1:10, NA), 10))

df <- delete_na(df, 1)

# Or with magrittr syntax sugar
df %<>% delete_na
# }
Documentation reproduced from package tadaatoolbox, version 0.16.0, License: MIT + file LICENSE

Community examples

Looks like there are no examples yet.