Description Usage Arguments Value Author(s) Examples
Extract numerical columns from a data frame.
1 | numericols(x, include.logical=TRUE)
|
x |
a data frame with at least one numerical column. |
include.logical |
logical; if |
A data frame containing the numerical columns of x
.
Daniel Dvorkin
1 2 3 4 5 6 7 8 9 10 11 12 | x = data.frame(number=1:3, species=c("cat", "dog", "rat"),
forsale=c(TRUE, FALSE, TRUE))
numericols(x)
# number forsale
# 1 1 TRUE
# 2 2 FALSE
# 3 3 TRUE
numericols(x, FALSE)
# number
# 1 1
# 2 2
# 3 3
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.