powered by
## S3 method for class 'default': dataFrame(colClasses, nrow=1, ...)
character
vector
read.table
integer
data.frame
nrow
length(colClasses)
df <- dataFrame(colClasses=c(a="integer", b="double"), nrow=10) df[,1] <- sample(1:nrow(df)) df[,2] <- rnorm(nrow(df)) print(df)
Run the code above in your browser using DataLab