Search Archives
Search tips
from:Name
Search by author name, e.g. from:Duncan Murdoch
"exact phrase"
Match an exact phrase
word1 word2
Match messages containing both words
Date range
Use the date pickers to filter results to a time period
Use the list dropdown to narrow results to a specific mailing list. Combine from: with other terms to filter by author and content.
The Irregular Time-Series ('its') class could be helpful to you. The following does the basics of what you have asked. require(its) its.format("%m/%d/%y") myits <- its(cbind(reelect,new),dates=as.POSIXct(x=strptime(dateofpoll,format...
The issue to which you refer is putting 2 time-series with non-aligned (or inconsistent) time-stamps onto a consistent basis. There are four functions to assist with this task in the 'its' package: try ?its-join for help...
The way to control number of tickmarks in plot is via par(lab) par(lab=c(5,5,7)) #the default plot(rnorm(20),rnorm(20)) par(lab=3*c(5,5,7)) plot(rnorm(20),rnorm(20)) However this...
One solution is to use the Irregular Time-Series (its) package on CRAN. LeafDig <- cbind(Leafminers,Diglyphus) dimnames(LeafDig)[[1]] <- c("05/02/03","05/09/03","05/16/03","05/23/03","05/30/03","06/07/03","06...
I am having difficulty using in 1.8.0 an object created under 1.7.1. The following is a 'minimal example' of the issue. First the part in 1.7.1: > require("methods") [1] TRUE > setClass("foo",representation("vector...
The 'its' class may be useful to you for printing/plotting/aligning data, but as Jason says, you will need to rely on other packages such as stats (formerly ts) for analysis, using the appropriate na.action. Two comments in...
> BUT; > 1. What can you do with informat and outformat? Is it the same as > its.format() before the its function? its.format() sets the text representation format for the times, and once set, it persists within that R session...
1. I want to extend the 'array' class, and prefer to use S4 in the belief that this is the best structure for new projects (as the documentation says). I actually wish to do something similar to the excellent Oarray...
My question has two parts. The first is with regard to the frame or environment in which generic functions are defined in packages. It seems as though they are defined (i.e. exist as objects) in frame 1, even when...
You may find the irregular time-series (its) package on CRAN helpful. If your raw data were in a csv file thus: x april 26 2002 15:00:00 1.1 april 26 2002 15:15:00 1.2 april...
First convert your dates to POSIXct, similar to the following: tmp <- strptime("Jan1 18:56:24",format="%b%d %H:%M:%S") [Here is a synthetic example for demo purposes] tmp <- seq.POSIXt(from=Sys.time(),length=100,by=1...
Thank you for assistance on this. I have created the empty file "install.R" in the right place, and used Rcmd build its --binary If I then use Rcmd INSTALL its --save Everything works fine, with the generics along with...
If you use priceIts() in package 'its' (Irregular Time Series), you get similar functionality, and the labelling etc in plot() recognizes the calendar. You can also do further calendar-based extractions, etc. - Giles > -----Original Message----- > From: r-help-bounces at...
If you wish to 'skip' (i.e. not interpolate) weekends in its, you could use the following: prices <- priceIts(instrument="ongc.ns") plot(union(prices,newIts(start=start(prices),end=end(prices))),interp="none" ) - Giles > -----Original Message----- > From: r-help...
Well, I'm not sure I understand the question exactly, but you might want to have a look at the package 'its', as Achim said. A practical example might look like: You have a .csv file as follows (I have...
Financial data, as you point out, is generally irregular, which is in essence what prompted the devlopment of the irregular time-series (its) package, which is posted on CRAN (v0.1.2 posted today, incidentally). In the its class, the...
The following is an example of a dataframe containing times, plus some numeric data. foo <- c("12:39:26","12:40:22","12:41:19") bar <- data.frame(foo,1:3,11:13) Note that the times are of class...
Can't find what you're looking for? Try searching with Google .