View source: R/makeDataFrame.R
makeDataFrame | R Documentation |
Initialize data.frame in a convenient way.
makeDataFrame( nrow, ncol, col.types, init, row.names = NULL, col.names = sprintf("V%i", seq_len(ncol)) )
nrow |
[ |
ncol |
[ |
col.types |
[ |
init |
[any] |
row.names |
[ |
col.names |
[ |
print(makeDataFrame(3, 2, init = 7)) print(makeDataFrame(3, 2, "logical")) print(makeDataFrame(3, 2, c("logical", "numeric")))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.