Displaying 1 result from an estimated 1 matches for "ikealastmod".
2008 Jul 31
1
Rearranging Data
...indx[1]]
}
else {
.df$date[tail(.indx, 1)] - .df$date[.indx[1]]
}
})
})
# output the mean and median
t(sapply(out, function(.cntry) c(number=length(.cntry),
mean=mean(.cntry), median=median(.cntry))))
I wanted to know if there is a way to rearrange data from IKEALASTmod so
that we can use something like the code above. The new problem is that
instead of date and country only, there is now date, country and
product. So is it possible to rearrange my data to have the output from
above be by country and price.
Hope I was clear, thanks for any help you can offer!...