R initialize empty dataframe with 0 rwos code example
Example 1: R empty datafrane
df <-- data.frame()
Example 2: r - create a new empty variable in a dataset
df$blankVar <- NA # Blank column
df <-- data.frame()
df$blankVar <- NA # Blank column