Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR MATLAB

create empty dataframe r with column names

setNames(data.frame(matrix(ncol = 3, nrow = 0)), c("name", "age", "gender"))

#[1] name   age    gender
#<0 rows> (or 0-length row.names)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #create #empty #dataframe #column #names
ADD COMMENT
Topic
Name
3+3 =