asdf <- data.frame(Col1 = rep(letters[1:5], each=2), Col2 = rep(c("Day1", "Day7")), Col3 = runif(10), Col4 = runif(10), Col5 = runif(10))
#I want to end up with a final table that has names() like this
#Col1, Day1Col3, Day7Col3, Day1Col4, Day7Col4, Day1Col5, Day7Col5
#I can sort of do it over a single column, but it looks weird
spread(asdf, Col2, Col3)
WEEK_NAME |
ITM_SKU_CD | ITM_SKU_DESC | weekly_dollars | weekly_units | weekly_features | weekly_displays | weekly_distribution | size_in_oz | avg_unit_price | avg_price_per_oz |
To unsubscribe from this group and stop receiving emails from it, send an email to manipulatr+unsubscribe@googlegroups.com.
To post to this group, send email to manip...@googlegroups.com.
Visit this group at https://groups.google.com/group/manipulatr.