dataFrame

0th

Percentile

Allocates a data frame with given column classes

Usage
## S3 method for class 'default}(colClasses, nrow=1, ...)':
dataFrameundefined

Allocates a data frame with given column classes.

colClasses{A character vector of column classes,
   cf. read.table.}
 nrow{An integer specifying the number of rows of the
   allocated data frame.}
 ...{Not used.}

Returns an NxK data.frame where N equals nrow and
 K equals 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)

data.frame.



manip
utilities
Aliases
  • dataFrame.default
  • dataFrame
Documentation reproduced from package R.utils, version 1.1.0, License: LGPL (>= 2.1)

Community examples

Looks like there are no examples yet.