I have a dataframe with a lot of columns.
LABEL COL1 COL2 COL3 Meat 10 20 30 Veggies 20 30 40
How do I make column named
I ended up using this code:
df$SUMCOL <- rowSums(df[sapply(df, is.numeric)], na.rm = TRUE)