Displaying 20 results from an estimated 200 matches similar to: "Installing the Zoo Library."
2010 Mar 19
3
strange behavior, adds new field by non-existent field
data:
> tmp1
Date HrMn Temp Q.4
1 19450101 0900 -37.0 1
2 19450101 1000 -35.9 2
3 19450101 1100 -35.9 3
4 19450101 1200 -36.4 4
5 19450101 1300 -36.4 5
6 19450101 1400 -36.4 6
7 19450101 1500 -36.4 7
8 19450101 1600 -37.5 9
Accidentally, I did this (I meant to write Q.4 instead of Q here)
> tmp1$Q[tmp1$Q!="1" & tmp1$Q!= "5"]<-NA
I would
2011 Feb 09
3
Problem with xlsx package
I am trying to read an xlsx spreadsheet (1506 rows, 501columns) all
populated but getting the following error:
Please advise as to how to get around this issue.
> res <- read.xlsx("c:\\BSE_v2.xlsx",1)
Error in .jcall("RJavaTools", "Ljava/lang/Object;", "invokeMethod", cl, :
java.lang.OutOfMemoryError: Java heap space
Here is the session info:
2011 May 26
4
Different behavior of median and mean function - Why?
Hi together,
below is a small example which produces outcome I do not understand,
namely that the median function works fine on a data.frame without
negative numbers, but doesn't work on a data.frame with one negative
number. I'm sure there is a reasonable explanation for that or better,
that I'm doing something wrong and someone could guide me how to solve
it. I tried googling it,
2011 Apr 27
1
ctree and survival problem
Dear all,
I was intrigued by the ctree command and wanted to check it out. I first ran the demo with example(ctree) and did get the survival graphs in the end. Upon doing this with my own data and yielding a "Invalid operation on a survival time" I tried to rerun example(ctree) and now I also get "Invalid operation on a survival time" after the example runs plot(GBSG2ct)...
2010 Jul 14
2
qplot in ggplot2 not working any longer - (what did I do?)
This is the first time that I have tried to update packages with a
tinkered around with .Rprofile. I start R with R --vanilla and it
does not load my .Rprofile, but when I issue the command
update.packages() R downloads the packages as expected, but then seems
to load .Rprofile before compiling the packages sources. What am I
doing wrong?
kindest regards,
Stephen Sefick
see- Session info
2008 Nov 04
2
Zoo seems to be running slow in R 2.8.0 windows
R version 2.8.0 (2008-10-20)
i386-pc-mingw32
locale:
LC_COLLATE=English_United States.1252;LC_CTYPE=English_United
States.1252;LC_MONETARY=English_United
States.1252;LC_NUMERIC=C;LC_TIME=English_United States.1252
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] StreamMetabolism_0.01 chron_2.3-24 zoo_1.5-4
loaded
2008 Jun 09
3
xyplot.zoo question about strip.left and layout
Dear R masters,
I have large multivariate time series as zoo objects and want to plot them using lattice.
Since I have many variates in one object I would like to have the strips on the left, using strip.left = TRUE. However when I use this the variable names are converted into numbers. How can I keep there the original variable names? (compare test1 and test2 in example below)
Furthermore
2010 Mar 18
1
probable timezone confusion with as.yearmon
It looks like a timezone issue, and it's causing confusion to me at least.
My original data:
gmt <-
c("19880101 0000", "19880101 0100", "19880101 0300", "19880101 0400",
"19880101 0500", "19880101 0600")
These were converted to local dates/times with
akst<-strptime(gmt,format="%Y%m%d %H%M")-(3600*9) # because I want
2010 Jul 29
1
multiple graphics windows open with sessionInfo
Dear R People:
Hello again. I'm trying to have 3 graphics windows visible
simultaneously. I set up a zoo series.
Then I plot the original series. I use the locator function to select
2 values from the original series, which generates a subset of the
original series.
Next, I plot the subset.
The last step is to produce an EWMA chart from the subset series.
Fair enough. I've tried
2010 Jul 13
2
Zoo - bug ???
Hi folks,
I am confused whether the following is a bug or it is fine
Here is the explanation
a <- zoo(c(NA,1:9),1:10)
Now If I do
rollapply(a,FUN=mean,width=3,align="right")
I get
> rollapply(a,FUN=mean,width=3,align="right")
3 4 5 6 7 8 9 10
NA NA NA NA NA NA NA NA
But I shouldn't be getting NA right ? i.e for index 10 I should get
(1/3)*(9+8+7)
2009 Aug 22
1
Why is R so slow at plotting on Ubuntu 9.04?
under Ubuntu 9.04 R seems to be very slow at plotting.
the example below illustrates with a plot of error bars of sample means
where i watch as each error bar is plotted one at a time. very annoying and pain in the neck when running Sweave repeatedly.
running R 2.9.1 under Windoze on the same machine the error bars plotted in the code below appear instantaneously.
has anyone else noticed this
2009 Jul 21
1
error when installing rjags
Hi All: I get the following error when trying to install the rjags package.
I've installed the
jags software and I'm using Fedora 10.0 and my sessionInfo is at the bottom
of this email.
I'm also sorry if this email ends up having control A's all over it. I still
haven't figured how to fix that. Thanks.
[1] "LOADING MASS LIBRARY"
checking for
2011 Jan 09
1
Rectangle height in lattice xyplot key
Dear All
I have a problem with the height of the boxes in the key in the following.
(The text is over 2 lines to accentuate the problem of no space
between the rectangles.)
Is there an easy way to put a space between the rectangles; size
controls the width but there appears to be nothing for the height?
xyplot(1~1,
key = list(corner = c(0.8,0.8),
2009 Sep 26
1
mboost_1.1-3 blackboost_fit (PR#13972)
Full_Name: Ivan the Terrible
Version: 2.9.2
OS: Windows XP SP3
Submission from: (NULL) (89.110.13.151)
When using the method blackboost_fit of the package mboost appear following
error :
Error in party:::get_variables(obj at responses) :
trying to get slot "responses" from an object (class "boost_data") that is not
an S4 object
Simple test case that produce bug:
2009 Jun 01
2
Sweave:Figures from plot (LME output) not getting generated (pdf or eps)
Hi,
I seem to be facing a strange problem when I use Sweave for creating a
LaTeX document of the R lme() output --- The EPS and PDF figure files
get created, but are empty. I have attached a reproducible example
below (taken from the R lme() help example).
------------------------------------------------------------------------------------
\documentclass[a4paper,10pt]{article}
2011 Jul 10
2
sort infelicity
Hello:
sort(c('A', 'b', 'C')) seems to produce different answers in R
interactive than in "R CMD check", at least under both Fedora 13 and
Windows 7 with Windows 7 sessionInfo() copied below:
In interactive, the result is c('A', 'b', 'C'); with R CMD
check, it is c('A', 'C', 'b'). This produced
2008 Aug 18
1
trying to mimic page 70 of Software for Data Analysis
I was trying to do what is on page 70 of John Chambers' new book namely
using trace to invoke the browser by doing
trace(zapsmall, edit = TRUE)
but , typing above at an R prompt, I get
trace(zapsmall, edit=TRUE)
sh: EMACS: command not found
Error in edit(name, file, title, editor) :
problem with running editor EMACS
I looked in the archives but maybe it's a problem with the
2008 Dec 16
1
Problem with alignDailySwries in R-metrics
Hi Folks! I seem to be having a problem with alignDailySeries in Rmetrics:
DTB6<-fredSeries("DTB6",frequency = "daily",from = "1980-01-01")
trying URL '
http://research.stlouisfed.org/fred2/series/DTB6/downloaddata/DTB6.txt'
Content type 'text/plain; charset=UTF-8' length 248392 bytes (242 Kb)
opened URL
downloaded 242 Kb
Read 13060 items
2009 Jul 15
0
POSIX, timezones and R-ODBC
Howdy-
I recently upgraded to R 2.9.1 and did the updates for all of my packages. A
few of them now *suggest* the TZ variable to be set, which I did:
> Sys.getenv("TZ")
TZ
""
> Sys.setenv(TZ="America/New_York")
> Sys.getenv("TZ")
TZ
"America/New_York"
Next up:
library(RODBC)
library(quantmod)
channel <-
2009 Oct 21
0
Problems coercing to timeSeries
Hi all. I'm suddenly having problems with the following:
> FUT10Y<-read.table("C:\\FUT10YR.csv",header=TRUE,sep=",")
> head(FUT10Y)
Date PX_OPEN PX_HIGH PX_LOW PX_LAST
1 1/5/1999 119.0000 119.1875 118.5312 118.6250
2 1/6/1999 118.5938 118.8750 118.2812 118.8438
3 1/7/1999 118.9062 119.0312 118.3750 118.5000
4 1/8/1999 118.4688 118.5625 117.5312