testdata | R Documentation |
A data frame containing various variable types and special values.
testdata
A data frame with n=25
rows and 8 variables:
runif(n)
with a NA
, NaN
, Inf
, -Inf
rnorm(n, 0, 2)
with a NA
, NaN
rep(0, n)
as.integer(rnorm(n, 0, 2)
with a NA
, NaN
sample(c(0,1), size=n, replace=TRUE)
factor(as.integer(rnorm(n, 0, 2))
with a NA
ordered(as.integer(rnorm(n, 0, 2))
with a new level 10
ordered(as.integer(rnorm(n, 0, 2))
with a NA
as.character(as.integer(rnorm(n, 0, 2))
with a NA
and ""
sample(c(T,F), size=n, replace=TRUE))
with a NA
rep("constant, n)
sample(c(T,F), size=n, replace=TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.