Displaying 20 results from an estimated 10000 matches similar to: "zoo objects and "c""
2010 Jun 10
2
[R[ dates on zoo objects
Dear R People:
I have a zoo object with its date index as a factor.
> xAle1.zoo$index
Error in xAle1.zoo$index : $ operator is invalid for atomic vectors
> str(xAle1.zoo)
Class 'zoo' atomic [1:32] 1253 1316 1038 1157 1710 1489 1159 1142 945 1245 ...
..- attr(*, "index")= Factor w/ 32 levels "04/16/09","04/17/09",..:
1 2 3 4 5 6 7 8 9 10 ...
>
2010 Apr 20
1
converting a zoo or an xts to a data frame
Dear R People:
I have the following code that I use to convert a monthly zoo object
to a data.frame, and it works perfectly:
library(tseries)
z <- get.hist.quote(instrument=inst1, start=start1,end=end1,
quote=quot1,comp = "m")
y <- as.ts(aggregate(z, as.yearmon, tail, 1))
y.df <- data.frame(y=y,time=time(y))
y.df$x <- ts(y.df[,1])
tsp(y.df$x) <-
2010 Mar 07
3
aggregate for zoo or its?
Dear R People:
The aggregate function works very well on regular time series.
Is there a version for zoo or its that would take daily data and
convert it to monthly, please?
Thanks in advance,
Sincerely,
Erin
--
Erin Hodgess
Associate Professor
Department of Computer and Mathematical Sciences
University of Houston - Downtown
mailto: erinm.hodgess at gmail.com
2010 Aug 01
1
aggregating a daily zoo object to a weekly zoo object
Dear R People:
I'm trying to convert a daily zoo object to a weekly zoo object:
xdate <- seq(as.Date("2002-01-01"),as.Date("2010-07-10"),by="day")
library(zoo)
length(xdate)
xt <- zoo(rnorm(3113),order=xdate)
xdat2 <- seq(index(xt)[1],index(xt)[3113],by="week")
xt.w <- aggregate(xt,by=xdat2,mean)
Error: length(time(x)) ==
2010 Jun 02
2
building time series/zoo/its from a data frame
Dear R People:
I have the following data frame:
> x.df
date cond freq
1 04/01/09 Fever 12
2 04/02/09 Fever 11
3 04/03/09 Fever 10
4 04/04/09 Fever 13
5 04/05/09 Fever 6
6 04/01/09 Rash 6
7 04/02/09 Rash 10
8 04/03/09 Rash 9
9 04/04/09 Rash 10
10 04/05/09 Rash 8
11 04/01/09
2010 Jul 29
2
multiple graphics windows open
Dear R People:
Now I have a function with 3 graphics windows. I'd like for them all
to be visible. However, the first window goes blank. Here is the
basic setup. The first plot is the entire series. The user selects
two points, which in turns generates a subset plot and an EWMA subset
plot. Finally, if things worked right, the user should be able to
click on "Tile Vertically"
2011 Mar 17
1
possible problem with "endpoints"?
Dear R People:
Hello again!
I found something unusual in the behavior of the "endpoints" function
from the xts package:
> x1 <- ts(1:24,start=2008,freq=12)
> dat <- seq(as.Date("2008/01/01"),length=24,by="months")
> library(zoo);library(xts)
> x2 <- zoo(1:24,order=dat)
> #Here is the surprise:
> endpoints(as.xts(x1),'quarters')
2017 Nov 07
0
FW: Time Series
Hello!
What is the error message, please?
At first glance, you are using the "ts" function. That doesn't work for
hourly frequency.
You may want to create a zoo object.
This is Round One.
Sincerely,
Erin
On Tue, Nov 7, 2017 at 1:46 AM, Emre Karag?lle <karagullemre at gmail.com>
wrote:
>
> Hi,
> I would like to ask a question about time series.
> I am trying
2010 Jun 08
2
setting up zoo objects from a data frame
Dear R People:
I have the following data frame:
> str(dog.df)
'data.frame': 7 obs. of 2 variables:
$ V1: Factor w/ 3 levels "1/1/2000","1/2/2000",..: 1 1 1 2 2 3 3
$ V2: Factor w/ 3 levels "cat","dog","tree": 2 1 3 1 3 2 3
> dog.df
V1 V2
1 1/1/2000 dog
2 1/1/2000 cat
3 1/1/2000 tree
4 1/2/2000 cat
5 1/2/2000 tree
6
2011 Mar 17
3
date conversion
Dear R People:
I have a monthly time series which runs from January 1998 to December 2010.
When I use tsp I get the following:
> tsp(ibm$ts)
[1] 1998.000 2010.917 12.000
Is there an easy way to convert this to a seq.Date object, please?
I would like to have something to the effect of
1998/01/01 .... 2010/12/01
Thanks,
Erin
--
Erin Hodgess
Associate Professor
Department of Computer
2013 Jan 09
1
R2html and Blackboard LMS : solved
Everything is ok on Firefox, IE, and iPad.
Thanks,
Erin
On Tue, Jan 8, 2013 at 7:58 PM, Erin Hodgess <erinm.hodgess at gmail.com> wrote:
> Dear R People:
>
> Has anyone used R2HTML in web files that were on the Blackboard LMS, please?
>
> I'm starting to do these but wanted to know if there were any
> potential pitfalls.
>
> Thanks,
> Erin
>
>
> --
2010 Jul 16
1
setting up dates
I have several data sets, which begin early in 2002 and run until
yesterday. They do not have observations every day. For example:
> xd1[1:10]
2002-02-25 2002-02-26 2002-02-28 2002-03-01 2002-03-04 2002-03-05 2002-03-07
7 8 1 9 12 3 5
2002-03-08 2002-03-11 2002-03-12
7 10 5
>
I want to set up zoo
2017 Aug 17
1
really dumb question with building/creating a new package.
Thank you!
On Thu, Aug 17, 2017 at 4:55 PM, Bert Gunter <bgunter.4567 at gmail.com> wrote:
> r-package-devel is probably a better place to post this, especially if
> you do not get a satisfactory reply here. This list is about R
> programming, as you presumably know; your query is not.
>
> Cheers,
> Bert
>
>
> Bert Gunter
>
> "The trouble with having
2010 Jun 08
3
more dates and data frames
Dear R People:
So thanks to your help, I have the following:
> dog3.df <- read.delim("c:/Users/erin/Documents/dog1.txt",header=FALSE,sep="\t")
> dog3.df
V1 V2
1 1/1/2000 dog
2 1/1/2000 cat
3 1/1/2000 tree
4 1/1/2000 dog
5 1/2/2000 cat
6 1/2/2000 cat
7 1/2/2000 cat
8 1/2/2000 tree
9 1/3/2000 dog
10 1/3/2000 tree
11 1/6/2000 dog
12 1/6/2000
2019 Mar 04
1
Problem with compiling OpenBLAS to work with R
>>>>> Erin Hodgess
>>>>> on Fri, 1 Mar 2019 12:30:35 -0700 writes:
> Yay! I re-installed everything and got through "Make
> distribution"! I have one more question, please: I am
> running the make check-all. I have an error at reg-1d.
> It stops the process. However, the mean difference (as
> per the file) is
2012 Apr 05
1
producing vignettes
Hi R People:
What is the best way to learn how to produce vignettes, please?
Any help much appreciated.
Thanks,
Erin
--
Erin Hodgess
Associate Professor
Department of Computer and Mathematical Sciences
University of Houston - Downtown
mailto: erinm.hodgess at gmail.com
2010 Dec 17
4
using ls() to find a function
Dear R People:
Is there a way to find which objects are functions via ls(), please?
I'm sure that there is, but I'm not sure how.
Thanks,
Erin
--
Erin Hodgess
Associate Professor
Department of Computer and Mathematical Sciences
University of Houston - Downtown
mailto: erinm.hodgess at gmail.com
2011 Oct 19
3
converting string fractions to numerics
Dear R People:
Suppose I have the following:
"pi/2"
and I would like it to be 1.57.....
Using as.numeric, here is my result:
> as.numeric("pi/2")
[1] NA
Warning message:
NAs introduced by coercion
>
Is there a way to produce the numeric result, please?
Thanks,
Erin
--
Erin Hodgess
Associate Professor
Department of Computer and Mathematical Sciences
University of
2017 Dec 21
3
Building R from source with the PGI compiler
Hello
I would like to build R from source and use the PGI compiler, rather than
the GCC compiler.
I saw the instructions for the Intel compiler in the R Installation Manual,
but I didn't see the PGI. I tried a few times without instructions, but
without success.
Any suggestions would be most welcome. Also, I hope this is the right
group for the question.
Sincerely,
Erin
--
Erin
2010 Nov 13
2
R on an iPad
Dear R People:
Is it possible to run R on an iPad, please?
For some reason, I'm thinking that you can't have Fortran, C, etc., so
you can't do it.
But I thought I would check anyway.
Thanks,
Erin
--
Erin Hodgess
Associate Professor
Department of Computer and Mathematical Sciences
University of Houston - Downtown
mailto: erinm.hodgess at gmail.com