Displaying 18 results from an estimated 18 matches similar to: "readcsvIts"
2007 Jun 14
1
names() after library(RDCOMClient) problem(?)
Hello,
Try example(names) in R 2.5.0 after library(RDCOMClient) and you get
> example(names)
names> # print the names attribute of the islands data set
names> names(islands)
Error in names(islands) : no applicable method for "names"
>
Is this normal? Any way round it???
Best regards,
Costas
----------------------------------
Costas Vorlow
2008 Jun 19
1
How can I shade the background area of a zoo time series object between specific dates?
Dear list members,
How can I shade the background area of a zoo time series object between
specific dates?
eg.
library(tseries)
library(zoo)
SP500<-get.hist.quote("^GSPC", start = "1990-01-01", quote =
"Close")
plot(SP500)
How can I produce the same plot but with a (say) red background between
2007-04-12
and
2008-05-14
?
2008 Apr 14
1
ctv, install.views, install.packages (& update.packages)
Dear all,
Wouldn't it be helpful if the
install.views
install.packages
update.packages
had a "downloadonly=TRUE" flag which would allow us to download the
packages and install them later (or put them in a USB stick and take
them for installation on anothe PC).
I am behind a firewall (Bank) and I have serious plroblem updating R or
installing views (Finance, Econometrics etc.
2008 Jul 08
0
forecast & xreg
Dear all,
I am fitting an arimax (arima with some extra explanatory variables)
model to a time series. Say, I have a Y (dependent variable) and an X
(explanatory).
Y is 100 observations (time series) and X is 100 + 20 (20 to use for the
forecast horizon).
I can not make xreg work with the forecast function for an arima fit.
The "predict" function seems to be working but the
2008 Jul 02
0
Combining playwith with par(mfrow... ) i.e., multiple plots.
Hi,
I have the following problem:
library(playwith)
x<-ts(rnorm(100))
y<-ts(cumsum(x))
playwith({
par(mfrow=c(2,1))
plot(x)
plot(y)})
I can't make playwith identify (using the button top left) datapoints on
multiple graph plots (eg. par(mfrow=c(2,2) for a 2 x 2 frame of plots).
Is it possible any other way?
Many thanks in advance,
Costas
P Think
2007 Aug 02
2
plot to postscript orientation
Hi
I am trying to save some plots in a postscript file. When I generate the
plots in the main window, they appear correctly - their orientation is
landscape (i.e., horizontal). However, when I open the .ps file with GSview,
the whole page appears vertically, and the plot appears horizontally, which
means that the plot is only partially visible (example here
2003 Sep 01
2
readcsvIts() to create irregular time series
Dear,
Thanks for the previous tips about 'its' for importing the following
data.
5/10/1998,7
5/11/1998,5
5/12/1998,2
5/14/1998,1
5/15/1998,1
5/19/1998,1
5/20/1998,1
1. When using the following command;
test<-readcsvIts('Fires98.csv',informat=its.format("%m/%d/%Y"),header=FA
LSE)
the function reads in the data from the csv file as;
V2
05/10/1998 7
2005 Jul 12
3
using its to import time series data with uneven dates
Good day:
I am trying to use
readcsvIts("nwr_data_qc.txt",informat=its.format("%Y%m%d%h%M
%Y"),header=TRUE,sep="",skip=0,row.names=NULL,as.is=TRUE,dec=".")
to read in a file (nwr_data_qc.txt) that looks like this:
Time Y M D H Min CO2
2000.18790 2000. 3. 9. 18. 30. 373.60
2000.20156 2000. 3. 14. 18. 30. 373.34
2004 Aug 25
1
Difficulties in starting up with its package
Folks,
I'm trying to learn `its' and am stuck on many basics. Could you
please help? I am on R 1.9.1 (2004-06-21) on Linux 2.4.17 #2. My its
version says
Packaged: Tue Apr 27 13:38:25 2004; HeywoodG
Built: R 1.9.0; ; 2004-04-28 15:03:13; unix
This part flows fine --
library(its)
x1 <- newIts(start="2000-01-01", end="2000-01-10", 1:30, ncol=3)
print(x1)
2006 Oct 18
0
(no subject)
I currently have an instance of R running on Solaris 8 Version 2.2.0
(2005-10-06 r35749)
Package: its Version: 1.0.9
Package: Hmisc Version: 3.0-1
I decided to build a new install on Linux RedHat As4.0 32 Bit running R
version 2.4.0 (2006-10-03)
Package: its Version: 1.1.4
Package: Hmisc Version: 3.1-1
Package: chron Version: 2.3-8
I am using the library(its) on both machines and
2006 Oct 18
0
R issue with quantile using its package
Frank,
Thanks for the reply so what I did in the interim was unistalled Hmisc
and chron and used version 3.0-2 of Hmisc which doesn't have the
dependency on chron, and reinstalled its version 1.1.4
However I still heave the issue, when I try to run the quantile command
on the given dataset.
Thanks,
~Lloyd
Gilroy, Lloyd (GTI) wrote:
> I currently have an instance of R running on
2003 Aug 21
2
Read date for timeserie object
Dear all,
Is there a simple trick to read in data with the following format and
create a Time Serie object of it?
Date CountOfField2
5/10/1998 7
5/11/1998 5
5/12/1998 2
5/14/1998 1
5/15/1998 1
5/19/1998 1
5/20/1998 1
5/21/1998 1
5/24/1998 2
5/25/1998 1
5/26/1998 2
....
2002
...
R should recognize that some dates are not available...(NA). You can
define start and end date Ok, and frequency= 365
2004 Feb 23
6
Need help on parsing dates
I know this:
> library(date)
> x="1979-04-04"
> try=as.date(x, "ymd")
> print(try)
[1] 4Apr79
and that `x' here has to be a string, e.g.:
> x=1979-04-04
> print(x)
[1] 1971
I'm stuck in reading from a file. I say:
> A <- read.table(file="try")
> print(A)
V1 V2
1 1979-04-04
2004 Aug 27
2
`its' questions
Problem 1: Often, when I'm dealing with its, str() breaks. Here's a
bug demo. The first statements work fine --
library(its)
# Make a series of all dates from 1/1/2000 to 10/1/2000; fill this up
# with integers from 1 to 30
x1 <- newIts(start="2000-01-01", end="2000-01-10", 1:30, ncol=3)
print(x1)
# Do the same, but restrict yourself to weekdays only
2003 Oct 22
2
High frequency time-series
Having to collect hourly electricity loads and quarter-of-an-hour electricity production data for some years I think that the tidiest way of doing it is to resort to ts but I don't know how to define such a frequency starting from a set date.
Leafing through r-help mail archives I've found this *ALMOST* satisfactory message:
==========================================================
2003 Oct 28
3
ts vs. POSIX
OK.
What if I have a time series which is collected every Monday, please?
What is the proper way to use the start option within the ts command
in order to indicate that this is Monday data, please?
Thanks again!
Sincerely,
Erin
2011 May 05
1
Question about error of "non-numeric argument to binary operator"
I have been trying to do a nls model and gives me the error of a nonnumeric
argument
table(file="c:/tt2.txt",header=T)
> fit.model <- nls(TT~60*(1+alpha*(v/c)^beta),data=tt2, start=list(alpha=1,
beta=3, v=1000))
Error in v/c : non-numeric argument to binary operator
> is.numeric(tt2)
[1] FALSE
> is.character(tt2)
[1] FALSE
> as.numeric(tt2)
Error: (list)
2013 Apr 22
7
Multiple lon lat points in the map with ggplot2
Hello R users,
For the last few days I am struggling with the following task:
my data.frame:
A1 A2 A3 B1 B2
B3
58.81 53.292 54.501 13.013 17.39 19.407 56.02 56.251 54.033 20.099 13.15
10.411 55.376 53.099 57.625 13.396 21.031 13.22 58.584 53.194 54.218
13.038 16.854 19.289 55.7 55.921 53.847 19.942 13.153 9.828 55.093 52.934