dataFrame | R Documentation |
Allocates a data frame with given column classes.
## Default S3 method:
dataFrame(colClasses, nrow=1, ...)
colClasses |
A |
nrow |
An |
... |
Not used. |
Returns an NxK data.frame
where N equals nrow
and
K equals length(colClasses)
.
data.frame
.
df <- dataFrame(colClasses=c(a="integer", b="double"), nrow=10)
df[,1] <- sample(1:nrow(df))
df[,2] <- rnorm(nrow(df))
print(df)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.