View source: R/dataInitialization.R
initDataFrameWithColnames | R Documentation |
This function creates an empty data frame and assigns the specified column names with zero rows.
initDataFrameWithColnames(colnames = NULL)
colnames |
A character vector specifying the names of the columns for the data frame. This vector will be attempted to be coerced to a character. |
A data frame with the specified column names. Non unique names will
be handled by the conventions of data.frame()
.
prefixes.
# Create a data frame with specified column names initialized with NA
initDataFrameWithColnames(c("Name", "Age", "Gender"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.