how to add a new row to a dataframe in r code example Example: r dataframe append row df[nrow(df) + 1,] = c("v1","v2")