Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

deleteBogusColumns

Remove columns in which the proportion of missing data exceeds a threshold.


Description

This is a column version of deleteBogusRows. Use the pm argument to set the proportion of missing required before a column is flagged for deletion

Usage

deleteBogusColumns(dframe, pm = 0.9, drop = FALSE, verbose = TRUE,
  n = 25)

Arguments

dframe

A data frame or matrix

pm

"proportion missing data" to be tolerated.

drop

Default FALSE: if data frame result is reduced to one column, should R's default drop behavior "demote" this to a column vector.

verbose

Default TRUE. Should a report be printed summarizing information to be delted?

n

Default 25: limit on number of values to print in diagnostic output. If set to NULL or NA, then all of the column values will be printed for the bogus rows.

Value

a data frame, invisibly

Author(s)

Paul Johnson <pauljohn@ku.edu>

See Also

deleteBogusRows


kutils

Project Management Tools

v1.70
GPL-2
Authors
Paul Johnson [aut, cre], Benjamin Kite [aut], Charles Redmon [aut], Jared Harpole [ctb], Kenna Whitley [ctb], Po-Yi Chen [ctb], Shadi Pirhosseinloo [ctb]
Initial release
2020-04-28

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.