makeDataFrame {BBmisc} | R Documentation |
Initialize data.frame in a convenient way.
Description
Initialize data.frame in a convenient way.
Usage
makeDataFrame(
nrow,
ncol,
col.types,
init,
row.names = NULL,
col.names = sprintf("V%i", seq_len(ncol))
)
Arguments
nrow |
[ |
ncol |
[ |
col.types |
[ |
init |
[any] |
row.names |
[ |
col.names |
[ |
Examples
print(makeDataFrame(3, 2, init = 7))
print(makeDataFrame(3, 2, "logical"))
print(makeDataFrame(3, 2, c("logical", "numeric")))
[Package BBmisc version 1.13 Index]