makexu93
4/30/2019 - 7:34 PM

Create empty dataframe in R

Create empty dataframe with 3 columns

empty_df <- data.frame(matrix(ncol = 3, nrow = 0))
colnames(empty_df) <- c("Col1","Col2","Col3")