Displaying 20 results from an estimated 10000 matches similar to: "align() function missing in R ?"
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
2007 Apr 24
3
R as a server on Linux
Hi,
I am trying to avid the somewhat costly startup overhead of launching
a separate R executable for each "client" request on Linux.
My current architecture is such that My Java client explicitly calls
R in batch mode and passes it certain parameters. The initital
startup takes almost 10 seconds because R has to load a bunch of
libraries as well as a moderately large, previously
2006 Apr 05
1
Time Series Objects/ MC Simulation
I am attempting to value convertible bonds through a Monte Carlo approach.
I want to express call schedules as date-price tuples. Naturally, these
tuples need to be expanded to match the frequency of the innovations in the
MC process.
1. Is there a straigh-forward way to accomplish this "expansion"?
2. I have noted the existance of ts, its, zoo and fCalendar. Does anyone
have an
2008 Aug 18
1
Converting monthly data to quarterly data
Dear R users,
I have a dataframe where column is has countries, column 2 is dates
(monthly) for each countrly, the next 10 columns are my factors where I have
measurements for each country and for each date. I have attached a sample
of the data in csv format with the data for 3 countries.
I would like to convert my monthly data into quarterly data, finding the
mean over 3 month periods for
2006 Jun 01
1
date sequencing using the Fcalendar package
I am using the following command from the Fcalendar Package :
x = timeSequence("1992-12-31","1994-12-31")
and then y = as.character(x) is a vector of character strings
"[1] 1992-12-31" "1993-01-31" "1993-03-03" "1993-03-31" "1993-05-01" etc
This is very close to what I need and thank you very much
to whomever wrote
2008 Apr 17
2
pnbinom.c qnorm.c
Dear R users,
I was wondering from where I could get the C source code to compute
pnbinom() and qnorm() ?
(I would use R in batch mode but I find the startup time prohibitive, unless
there is a way to speed it up)
I searched the Web and it clearly is part of the R distribution, I just
don't know how to extract them.
Thanking you !
Markus Loecher
Princeton, NJ
[[alternative HTML version
2010 Mar 09
2
MASS package not on CRAN ?
The MASS package is listed on the CRAN web site (
http://cran.r-project.org/web/packages/MASS/index.html) but I am unable to
install it via install.packages(). The error is that the package is
"unavailable". When I manually download the source tar ball and try to
install it on a Linux machine, installation fails because "it is not a valid
package".
Do I need to search
2008 Nov 12
2
apply() just loops ?
Dear R users,
I have been diligently using the apply() family in order to avoid explicit
for loops and speed up computation.
However, when I finally inspected the source code for apply, it appears that
the core computation is a simple loop as well.
What am I missing ? Why the often found advice to use apply() instead of
loops and the actually observed empirical speedups on many tasks ?
Thanks in
2007 Feb 04
2
Download stock prices
gReetings:
Is there any way to download a (or a sample of a) crossection of stock market prices? Or is it possible to use get.hist.quote with a *wild card*?
Thanks,
mihai
Mihai Nica
170 East Griffith St. G5
Jackson, MS 39201
601-914-0361
____________________________________________________________________________________
8:00? 8:25? 8:40? Find a flick in no time
[[alternative HTML
2009 Apr 18
2
source code for prompt()
Dear R community,
pardon my ignorance but how would you get the source code for"non-visible
functions" ?
For example, I would like to see and modify the source code for the prompt()
function.
Thanks!
Markus
[[alternative HTML version deleted]]
2009 Jun 05
2
read.table, row.names arg
Dear R users,
I had somehow expected that read.table() would treat the column specified by
the row.names argument as of class character. That seems to be the only
sensible class allowed for a column containing row names. However, that does
not seem to be the case, as the following example shows:
x <- cbind.data.frame(ID = c("010007787048271871", "1007109516820319",
2007 Oct 10
3
transparent colors
Dear R graphics experts,
Do you know of any way of plotting semi-transparent points in R ?
I face this problem any time I want to e.g. plot thousands of points
that belong to two or three classes which I color code.
With the default opaque colors, the plotting order matters and
basically the points I plot last completely dominate the picture. I
would much rather have the overlaying points
2010 Apr 30
1
Possible bug in POSIX classes for R 2.11.0?
To the R development team;
I found an unusual behavior in zoo when I upgraded to R 2.11.0 - it abruptly terminated when I performed certain operations on large zoo objects. I sent an e-mail to Achim Zeileis and he said this was a potential bug that I should report to the R development team. The details are given below in the thread below. Basically, I can crash R with this code:
library(zoo)
2011 Mar 29
1
ggplot2: scale_y_log10() with geom_histogram
Dear ggplot2 users,
is there an easy/elegant way to suppress zero count bars in histograms with
logarithmic y axis ?
One (made up) example would be
qplot(exp(rnorm(1000))) + geom_histogram(colour = "cornsilk", fill =
"darkblue") + scale_x_sqrt() + scale_y_log10()
Thanks!
Markus
[[alternative HTML version deleted]]
2009 Sep 07
1
Rmetrics: Problem with "align"
Hi there!
I'm stuck with a problem aligning financial timeseries and haven't found
a cue how to fix it...
When I run that simple script, everything goes well until the
"align"-command:
------
rm(list=ls())
x <- yahooSeries("^GDAXI")
head(x)
xAligned <- align(x = x, by = "1d", method = "before", include.weekends
= FALSE)
------
Here's
2000 Oct 24
1
installation problems with rbitmap.c (PR#703)
Full_Name: Markus Loecher
Version: 1.1.1
OS: Solaris
Submission from: (NULL) (129.73.1.1)
When trying to install R on a Sun SPARC, make fails in the very end, here is the
error message:
rbitmap.c:239: parse error before `jmp_buf'
rbitmap.c:239: warning: no semicolon at end of struct or union
rbitmap.c: In function `my_error_exit':
rbitmap.c:257: dereferencing pointer to incomplete type
2009 Sep 18
1
as.POSIXct(as.Date()) independent of timezone
Dear R users,
I am struggling a bit with the converting dates to full POSIX timestamps, in
particular, I would like to somehow force the timezone to be local, i.e. the
output of
as.POSIXct(as.Date("2008-07-01")) should always be equal to "2008-07-01
00:00:00", is that achievable ? I tried to set the origin and the timezone,
neither of which seems to make a difference.
On my Mac
2009 Oct 30
1
possible memory leak in predict.gbm(), package gbm ?
Dear gbm users,
When running predict.gbm() on a "large" dataset (150,000 rows, 300 columns,
500 trees), I notice that the memory used by R grows beyond reasonable
limits. My 14GB of RAM are often not sufficient. I am interpreting this as a
memory leak since there should be no reason to expand memory needs once the
data are loaded and passed to predict.gbm() ?
Running R version 2.9.2 on
2010 Mar 23
1
no predict function in lme4 ?
Dear mixed effects modelers,
I seem unable to find a predict method for mer objects in the package lme4.
Am I not seeing the forest for the trees ?
Any pointer would be very helpful.
Thanks,
Markus
[[alternative HTML version deleted]]
2010 Oct 24
1
140 packages in R Commander!!
Dear List
I just downloaded and installed R 2.12.0 and then installed R Commander .
First it got RCmdr and Car, and then suggested for other packages for
utilizing the full functionality- I clicked yes!
I got 140 packages installed!!! Cran Mirror was UCLA...
Here is the list.
Is this intentional- I can see some packages like snow and multicore which
are desirable but quite optional.(see list