tafile.rdata")
Thanks.
Jason
On Thu, Nov 18, 2010 at 6:56 AM, Duncan Murdoch wrote:
> On 18/11/2010 1:49 AM, Jason Kwok wrote:
>
>> How do I add data to a .rdata file? In my case, I have a time series that
>> needs to get updated every day.
>>
>
How do I add data to a .rdata file? In my case, I have a time series that
needs to get updated every day.
Thanks,
Jason
[[alternative HTML version deleted]]
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLE
:41 PM, Jason Kwok wrote:
> > How do I plot two time series plots on the same chart?
> >
>
> Try this:
>
> example(plot.ts)
> example(ts.plot)
>
> library(zoo)
> example(plot.zoo)
> library(lattice)
> example(xyplot.zoo)
>
> --
> Statistics &
How do I plot two time series plots on the same chart?
Thanks,
Jason
[[alternative HTML version deleted]]
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.o
I was able to get what I wanted using the lag function to offset an addition
period.
lag(rollapply(xx,3,max),-2) or lag(rollapply(xx,3,max,align="right"),-1)
Thanks.
Jason
On Thu, Oct 28, 2010 at 1:49 PM, Jason Kwok wrote:
> I figured out how to offset my observations by 1 pe
I figured out how to offset my observations by 1 period by using the
rollapply(xx,3,max,align="right"), which would calculate the mean for
(current observation, obs - 1 and obs -2 ). How would I further offset by
1 more period?
Thanks,
Jason
On Thu, Oct 28, 2010 at 1:29 PM, Jason K
columns and use pmax rowwise. If you mean the latter and have missing
> values, it may be considerably more difficult.
>
> However, offering anything more seems pointless until you have
> adequately specified what you want. Reproducible data and code for a
> start.
>
> Cheers,
>
I'm having trouble returning a rolling n period highest value for a data
set. For each day I want to calculate the highest value over the last 3
days. I am using the following packages: zoo, xts, quantmod and TTR.
Thanks, Jason
GLD.Close
2010-10-01128.91
2010-10-04128.46
2010
What's the difference between the packages you get from CRAN and R-Forge?
Are the packages you get from CRAN fully developed and R-Forge
work-in-progress?
Regards,
Jason
[[alternative HTML version deleted]]
__
R-help@r-project.org mailing list
Thanks for the response Erik.
In this case, I would like to keep the row name as the month. How would I
do that?
Thanks,
Jason
On Sun, Oct 24, 2010 at 6:20 PM, Erik Iverson wrote:
> On 10/24/2010 04:57 PM, Jason Kwok wrote:
>
>> I'm trying to import a CSV file into R
I'm trying to import a CSV file into R and when it gets imported, the
entries get numbered down the left side. How do I get rid of that?
Thanks,
Jason
*> read.csv(file="C:\\Program Files\\R\\Test Data\\sales.csv",head=TRUE)
Month Sales
1January 422
2 February 151
3 March
() to do what you want:
>
> subset(x, Price > 100)
>
> See ?subset for more information.
>
> HTH,
> Jorge
>
>
> On Sat, Oct 23, 2010 at 9:56 PM, Jason Kwok <> wrote:
>
>>Price
>> 2010-10-11 99
>> 2010-10-12101
&
Price > 100,, drop = FALSE]
> Price
> 2010-10-12 101
> 2010-10-13 102
> 2010-10-14 103
> 2010-10-20 101
> 2010-10-21 101
> 2010-10-22 101
> >
>
>
> On Sat, Oct 23, 2010 at 9:56 PM, Jason Kwok wrote:
> >Price
&g
Price
2010-10-11 99
2010-10-12101
2010-10-13102
2010-10-14103
2010-10-15 99
2010-10-18 98
2010-10-19 97
2010-10-20101
2010-10-21101
2010-10-22101
I have this dataset and I only want to return instances when the Price is >
100.
If I use t
14 matches
Mail list logo