Creates a data frame with specified dimensions, column types and optional initial values.
Arguments
- nrow
[
integer(1)]
Nubmer of rows.- ncol
[
integer(1)]
Number of columns.- col.types
[
character(ncol)|character(1)]
Data types of columns. If you only pass one type, it will be replicated. Supported are all atomic modes also supported byvector, i.e. all common data frame types except factors.- init
[any]
Scalar object to initialize all elements of the data.frame. You do not need to specifycol.typesif you pass this.- row.names
[
character|integer|NULL]
Row names. Default isNULL.- col.names
[
character|integer]
Column names. Default is “V1”, “V2”, and so on.