...: Variables to fill NAs in fill_na(), replace NAs in replace_na() or zeros in replace_zero(). If ... is null then all variables in .data will be evaluated. It must be a single variable name or a comma-separated list of unquoted variables names. Select helpers are also allowed.
direction: Direction in which to fill missing values. Currently either "down" (the default), "up", "downup" (i.e. first down and then up) or "updown" (first up and then down).
verbose: Logical argument. If TRUE (default) shows in console the rows or columns deleted.
replacement: The value used for replacement. Defaults to 0. Other possible values are Use "colmean", "colmin", and "colmax" to replace missing values with column mean, minimum and maximum values, respectively.
prop: The proportion (percentage) of NA values to generate in .data.
Returns
A data frame with rows or columns with NA values deleted.
Examples
library(metan)data_naz <- iris %>% group_by(Species)%>% doo(~head(., n =3))%>% as_character(Species)data_naz
data_naz[c(2:3,6,8), c(1:2,4,5)]<-NAdata_naz[c(2,7,9), c(2,3,4)]<-0has_na(data_naz)has_zero(data_naz)# Fill NA values of column GENfill_na(data_naz, Species)# Remove columnsremove_cols_na(data_naz)remove_cols_zero(data_naz)remove_rows_na(data_naz)remove_rows_zero(data_naz)# Select columnsselect_cols_na(data_naz)select_cols_zero(data_naz)select_rows_na(data_naz)select_rows_zero(data_naz)# Replace valuesreplace_na(data_naz)replace_zero(data_naz)