similar to: Subject: RE: Time plot question.

Displaying 20 results from an estimated 5000 matches similar to: "Subject: RE: Time plot question."

2003 Nov 12
0
Subject: RE: Time plot question.
Hello, Thank you for your reply. I am missing an intermediate step as > plot( strptime( Time, format = "%H:%M:%S"), FreeMemory) Error in strptime(Time, format = "%H:%M:%S") : invalid `x' argument > plot( strptime( c(Time), format = "%H:%M:%S"), FreeMemory) Error in strptime(c(Time), format = "%H:%M:%S") : invalid `x' argument
2003 Jul 09
2
Packages, generics, S3 and S4
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 defined in a package. The following is a short example: setClass("track",representation(x="numeric",y="numeric")) plotTrack <- function(x,y,...)
2001 Nov 28
1
Assignment to a list in a function
Assignment to a list in a function does not behave as I would expect. The following function illustrates the point #---------------------------------------- temp _ function() { nf _ 2 ns _ 5 z _ vector("list",ns) x _ matrix(NA,nrow=ns,ncol=nf) for(j in 1:ns) { for(i in 1:nf) { x[,i] _ i+j*100 } z[[j]] _ x print(z[[j]]) } z }
2003 Sep 18
0
non-numeric binary ops?
Has there been a recent change in the behavior of binary operators? In SparseM it was, until quite recently ok to do scalar multiplication but now, > A*4 Error in A * 4 : non-numeric argument to binary operator > 4*A Error in 4 * A : non-numeric argument to binary operator > A%*%A An object of class "matrix.csr" Slot "ra": [1] 1 1 1 Slot "ja": [1] 1 2 3
2004 Feb 26
2
package 'stats' needs import directive for 1.9.0?
I maintain the Irregular Time Series (its) package on CRAN. I am currently testing a release. Under 1.8.1 I am able to define a S4 generic 'start' as follows: if(!isGeneric("start")) {setGeneric("start", useAsDefault=start)} Under 1.9.0, Rcmd check generates an error, as 'start' is not recognised. If I use the NAMESPACE directive IMPORT, all is well:
2002 May 28
1
constrained regression
I want to do a linear regression where the coefficients obey two linear constraints, and also are all non-negative. What is the best way to do this? Computational speed is a consideration as I must do it many times. When this question was asked previously on the list, quadprog was suggested - is this the best solution? (I may have missed something obvious in the documentation, but I have
2003 Jun 06
3
irregular time-series
I make quite a lot of use of irregular time-series, and had already spent a bit of time writing an 'its' class when the 'irts' class was released via the package 'tseries'. I have experimented with the 'irts' class, and have some practical issues with its use. In some applications of irregular time-series (in my case these are financial and econometric) there are
2004 Oct 25
1
copyright issues when package maintainer changes
I will be taking over as maintainer of the its package from Giles Heywood. The code was originally written while he was working at Commerzbank. I have added the header below to the top of the R source file to indicate the changes in the copyrights for the code. The package was originally released under GPL2. I have no experience with copyright issues, and would appreciate it if someone who does
2003 Aug 11
1
New package: irregular time-series (its)
I have uploaded to CRAN a new package named 'its' (Irregular Time-Series). It implements irregular time-series as an S4 class, extending the matrix class, and records the time-stamp of each row in the matrix using POSIX. Print, plot, extraction, append, and related functionality are available. Feedback and suggestions are welcome. Giles Heywood
2003 Aug 11
1
New package: irregular time-series (its)
I have uploaded to CRAN a new package named 'its' (Irregular Time-Series). It implements irregular time-series as an S4 class, extending the matrix class, and records the time-stamp of each row in the matrix using POSIX. Print, plot, extraction, append, and related functionality are available. Feedback and suggestions are welcome. Giles Heywood
2003 Nov 25
0
AW: ISOdate() and strptime()
Thanks for this clarification. I have learned in the meantime that it is necessary to be very careful when using all these POSIX things. As another example, here is something that made me scratch my head just yesterday: When I create a sequence of days that happens to start before and ends in daylight savings time, I seem to lose a day: > seq(from = strptime("20030329",
2002 Oct 17
0
RE: R2HTML package for R 1.6
Does this help on our backtest reporting? Regards, Gordon Morrison Global Head of Quantitative Research > * + 44 20 7653 7642 > Mob: + 44 7867 801951 > fax: + 44 20 7645 7442 > * mailto:gordon.morrison at commerzbankib.com > web: http://www.cbksec.com/research/quant > * Commerzbank Securities > 60 Gracechurch Street > London EC3V 0HR, U.K. >
2003 Nov 14
5
ISOdate() and strptime()
Dear R-people! I am using R 1.8.0, under Windows XP. While using ISOdate() and strptime(), I noticed the following behaviour when "wrong" arguments (e.g., months>12) are given to these functions: > ISOdate(year=2003,month=2,day=20) #ok [1] "2003-02-20 13:00:00 Westeurop?ische Normalzeit" > ISOdate(year=2003,month=2,day=30) #wrong day, but returns a value [1]
2003 Nov 04
2
Object saved from 1.7.1, loaded in 1.8.0
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",label="character")) [1] "foo" > x <- new("foo",1:2,label=LETTERS[1:2]) >
2003 Jul 11
2
unz()
I am having problems getting the unz() function to work as a connection to start reading a file... z <- unz("c:/temp/stoxx.zip", "close_tmi_components.txt", "r") readLines(z,2) yields the following problems: > z <- unz("c:/temp/stoxx.zip", "close_tmi_components.txt", "r") Error in unz("c:/temp/stoxx.zip",
2004 Mar 30
1
seq.POSIXt() bug not fixed in R 1.8.1 (PR#4558)
I am still experiencing problems with seq.POSIXt() missing off the last day of the series: > seq(as.POSIXct("2004-03-25"),as.POSIXct("2004-03-31"),by="DSTdays") [1] "2004-03-25 GMT Standard Time" "2004-03-26 GMT Standard Time" "2004-03-27 GMT Standard Time" [4] "2004-03-28 GMT Standard Time" "2004-03-29 GMT Daylight
2003 Oct 07
1
persp or scatterplot3d?
Hello, I have three x-y plots whose interesting data occurs at the same time. When I place them in the same plot, they tend to obscure each other. I was hoping to use persp or scatterplot3d to plot them 3-dimensionally, so that the plot is visually useful. My data is simple: x, for all three data sets, is a set of 885 ISOdates, where x <- x0 + seq(1, 885). y is the value of "io",
2004 Mar 05
3
as.POSIXct problem
Hi all, I'm having difficulty converting a 'dates' object to a POSIXct object: testDATES<-c(35947,35971,36004,36008,36053,36066) testDATES<-chron(dates=testDATES, format = c(dates = "m/d/y"), origin=c(month = 12, day = 30, year = 1899)) >[1] 06/01/98 06/25/98 07/28/98 08/01/98 09/15/98 09/28/98 > as.POSIXct(testDATES) [1] NA NA NA NA NA NA
2003 Oct 21
0
summary - controling x-labels in xyplot (lattice) when x is POSIX object
Hi, The solution to my problem is to use lattice:::calculateAxisComponents to calculate appropriate labels for the time axis in trellis plots. # For example, given x <- seq.POSIXt(strptime("2003/01/01", format = "%Y/%m/%d"), strptime("2003/10/01", format = "%Y/%m/%d"), by = "month") y <- rnorm(length(x)) dat <-
2004 Mar 03
1
match.call(), S4
I get different results from match.call(), according to whether a function is dispatched via S3 or S4. Specifically, when I use S4 dispatch in the following example, the match.call() result is of length 1 less than I expect. I need to add an extra comma to get the same results as in the S3 method. --------example setClass("foo",representation("matrix"))