powered by
Transforms columns into rows and rows into columns.
me.spread(data, namenc = " ", mode = FALSE)
a dataframe
name of new column (first column) (default="")
if results are incorretly try set this to TRUE
Return a dataframe.
# NOT RUN { v=data.frame('date'=c('2016','2017'),'value1'=c(12,10),'value2'=c(8,6)) me.spread(v,namenc='old header') # }
Run the code above in your browser using DataLab