powered by
This function lets the user remove all rows that have some or all values as NAs. Note that as logical columns may be treated as numerical (1s and 0s), those will be kept.
numericalonly(df, dropnacols = TRUE, logs = FALSE, natransform = NA)
Data.frame
Boolean. Drop columns with only NA values?
Boolean. Calculate log(x)+1 for numerical columns?
String. "mean" or 0 to impute NA values. If set to NA no calculation will run.
Other Data Wrangling: balance_data(), categ_reducer(), cleanText(), date_cuts(), date_feats(), dateformat(), formatNum(), formatTime(), holidays(), impute(), left(), normalize(), ohe_commas(), ohse(), rbind_full(), removenacols(), removenarows(), replaceall(), right(), textFeats(), textTokenizer(), vector2text(), year_month(), year_week()
balance_data()
categ_reducer()
cleanText()
date_cuts()
date_feats()
dateformat()
formatNum()
formatTime()
holidays()
impute()
left()
normalize()
ohe_commas()
ohse()
rbind_full()
removenacols()
removenarows()
replaceall()
right()
textFeats()
textTokenizer()
vector2text()
year_month()
year_week()
# NOT RUN { data(dft) # Titanic dataset str(dft) numericalonly(dft) %>% head() numericalonly(dft, natransform = "mean") %>% head() # }
Run the code above in your browser using DataLab