Skip to content

how to aggregate the dataset

2 messages · Tammy Ma, Rui Barradas

#
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: