Description Usage Arguments Value Author(s) Examples
Extract and return a data frame with the columns that include only numeric values
1 |
data |
A numeric vector, matrix or data frame. |
This function returns a data frame with the numeric columns of the input dataset.
Kleanthis Koupidis
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | # with data frame as input
nums(iris)
# with vector as input
vec <- as.vector(iris$Sepal.Width)
nums(vec)
# with matrix as input
Matrix <- cbind(Uni05 = (1:200)/21, Norm = rnorm(200),
`5T` = rt(200, df = 5), Gam2 = rgamma(200, shape = 2))
nums(Matrix)
# OpenBudgets.eu Dataset Example:
head(nums(Wuppertal_df))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.