Skip to content
Prev 313548 / 398502 Next

how to aggregate the dataset

Hello,

maybe something like this?

range <- with(dat, paste0("[", min_price, ",", max_price, "]"))
dat2 <- with(dat, data.frame(product = product, VN = mean_price, range = 
range, price_band = price_band))

Unless it's a printing problem and you really want the range below VN.


Hope this helps,

Rui Barradas

Em 13-12-2012 11:24, Tammy Ma escreveu: