[R] How to....

Jim Lemon jim at bitwrit.com.au
Wed Jul 23 13:06:20 CEST 2008

On Tue, 2008-07-22 at 16:31 -0400, Jia Ying Mei wrote:
> Hi everyone,
> I am not new to R, but its been over a year since I've used it, so I 
> don't remember how to do some things.
> I have a data set (in excel currently, but will be converted to text), 
> that has date, country and price, with a price for every country for 
> every date. I need to find the mean and median of the interval between 
> price changes for each country and the mean and median percentage change 
> for each price change within the data for a single country.
> How should I go about doing this? I'd appreciate any help.

Hi Jia,
I'm not too sure what you mean by the second set of means and medians,
but this should get you started:

# first make up some data
# get the intervals by country - have to create a new data frame
# break down the intervals by country


More information about the R-help mailing list