This is a duplicated question.
How do I achieve from this dataframe:
Treatment = c("HS","C","H","S","TR")
BlockID = c(1,1,1,1,1)
PlotID = c(1,2,4,5,6)
Data = c(2003,2003,2003,2003,2003)
df = data.frame(Treatment,BlockID,PlotID,Data)
A new column which has in it the string values:
New Column
HS12003
C12003
H12003
S12003
TR12003
I cannot figure out how to "sum" string characters. Thanks in advance!