View source: R/check_numeric.R
check.numeric | R Documentation |
Check that fieldbook variables are stored as numeric.
check.numeric(dfr, crop = c("auto", "pt", "sp"), add = NULL)
dfr |
The name of the data frame. |
crop |
|
add |
Additional quantitative variables. |
It checks that all variables recognized by check.names
are stored as numeric. Non-numeric columns are transformed to numeric
and the NAs values introduced by coercion are listed.
It returns the data frame with all non-numeric variables transformed to numeric, and a list of all NAs values introduced by coercion.
Raul Eyzaguirre.
tmp <- check.names(potatoyield)
check.numeric(tmp)
tmp <- check.names(pjpz09)
check.numeric(tmp)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.