make empty data frame in r 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