Say I have a data frame called df. I can create a new column called ID in df that lists the row number for the data frame using R.
df$ID <- seq.int(nrow(df))
Now let's say I have a reactive data frame called df().
How can I accomplish the same thing?