removeNAfromCovars | R Documentation |
Function for removing missing values from columns of a data.frame or data.table. Must pass in the data to remove missing values from and a character vector of covariate names that correspond to column names in the data. Only observations from these columns are removed.
removeNAfromCovars(dat, covars)
dat |
Data.table or data.frame to remove missing values from. |
covars |
Character vector, the column names to look and remove missing observations from. |
Data.table with missing observations removed from specified columns.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.