Displaying 20 results from an estimated 10000 matches similar to: "if statement"
2008 Dec 18
1
For and if confusion
I have two date objects
X <- c("01-03-1993", "01-05-1997") #Mar 1993 and May 1997
Y <- c("01-02-1995", "01-08-1999") #Feb 1995 and Aug 1999
and a time series object
A <- ts(rnorm(120), freq=12, start=c(1992,8)) #Aug 1992 to Aug 2002
I want to create a binary (0-1) vector B that is of length 1:(A).
B should have value 1 for the time periods
2008 Dec 18
3
Parsing unusual date format
Hello,
If I have a character string like
d <- c("1990m3", "1992m8") #March 1990 and Aug 1992
what is the easiest way to convert it into any standard date form; for
example,
d <- c("01/03/1990", "01/08/1992")
I looked at as.Date but it doesn't seem to address my problem as I have an
"m" stuck in the middle of my character string
2009 Feb 03
1
Using getSymbols
Hi,
How can one ask getSymbols to obtain data within a specified time interval?
For example, if I am downloading US PPI data:
usppi <- as.zoo(getSymbols("PPIACO", src="FRED", verbose=TRUE,
auto.assign=FALSE))
How do I ask getSymbols to truncate starting from Jan-1970 until present? I
looked up the help file but couldn't find anything.
Another newbie question, can I
2009 Jan 20
2
Confidence intervals in ccf()
Hi,
I have been running the ccf() function to find cross-correlations of time
series across various lags. When I give the option of plot=TRUE, I get a
plot that gives me 95% confidence interval cut-offs (based on sample
covariances) for my cross-correlations at each lag. This gives me a sense of
whether my cross-correlations are statistically significant or not.
However, I am unable to get R to
2009 Mar 10
1
HAC corrected standard errors
Hi,
I have a simple linear regression for which I want to obtain HAC corrected
standard errors, since I have significant serial/auto correlation in my
residuals, and also potential heteroskedasticity.
Would anyone be able to direct me to the function that implements this in R?
It's a basic question and I'm sure I'm missing something obvious here. I
looked up this post:
2009 Feb 02
1
Beveridge Nelson Decomposition
Hi,
Would anyone know if it is possible to run a Beveridge Nelson decomposition
of a univariate time series object in R? I searched in the help files but
didn't come across any potential methods.
Thanks very much,
Shruthi
--
View this message in context: http://www.nabble.com/Beveridge-Nelson-Decomposition-tp21789452p21789452.html
Sent from the R help mailing list archive at Nabble.com.
2009 Jan 08
1
Convert to as.Date
Hi,
I have an vector object that looks like
DA <- c("1991q1", "1993q2")
(first quarter of 1991 etc) and I want to convert it into a date object
using as.Date(). I did this for montly data but am stumped when it comes to
dealing with quarterly data and as.Date.
Would anyone be able to help? Would be very grateful for any advice, sorry
for being such an R-newbie!
2008 Dec 18
1
Indicator function for merged times (was: Re: Rr: For and if confusion)
Please start a new thread for a new topic and use a
meaningful subject for sake of the archives and
everyone trying to follow.
Using your Int1, correcting your Int2 and using your
Y (which goes to Jul not Aug as per the comment):
library(zoo)
> as.ts(with(merge.zoo(Int1, Int2, Y, fill = 0), pmax(Int1, Int2)))
Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec
1992
2020 May 26
2
[ORC JIT][MLIR] GDBRegistrationListener "second attempt to perform debug registration" assert
Referring to the log messages from my previous mail… I confused myself (and probably others) by reading the “Adding MemMgr 0x55555959f440“ message as “Registering MemMgr 0x55555959f440”. Thus the address mismatch made no sense. How could we be registering a `MemMgr` address/key that does not match once we arrive in `notifyObjectLoaded` method?
Answer: Because the registrations is NOT coming
2004 Dec 01
1
reg win3.11 client configration
Dear sir,
We are using Rethat linnex 9 with which we got samba 2.2.7a. we are able to connect windows 98 and win xp machines, but the problem is we are not able to connect win 3.11 machines is there any add-on package for connecting win 3.11 clients ( windows workgrops )
with regards
Jayaram Prasad, Sr.Dy.Systems Engineer.
Systems Dept.
Hyderabad.
jayaram
2020 May 21
2
[ORC JIT][MLIR] GDBRegistrationListener "second attempt to perform debug registration" assert
Hi Adam,
Calls to the listeners should be protected by the RTDyldLayerMutex. Could
you apply the attached patch and share the debugging output from one of the
failing runs?
Regards,
Lang.
On Wed, May 20, 2020 at 8:00 PM David Blaikie <dblaikie at gmail.com> wrote:
> +Lang
>
> On Wed, May 20, 2020 at 4:44 PM Straw, Adam D via llvm-dev <
> llvm-dev at lists.llvm.org>
2010 May 07
2
smooth line overlap with histogram
Hi r-users,
I would like to overlap a smooth line on the histogram. I tried using spline but it does not work.
sq <- seq(0,900,by=50)
sq.50 <- as.character(sq)
datobs <- sum_pos
## first, plot histogram
histo <- hist(datobs,breaks=sq,freq=F)
## extract counts from histogram and calculate the probability in
## each specified interval. Also check the length of the interval is
2007 Sep 12
2
Tick intervals
Hi, I would like to plot a histogram with the following codes, and I would
like to make the tick intervals smaller. I tried to add "lab=c(1,1,12)", but
nothing changes.
par(mfrow=c(1,1),font=1, cex=0.8)
hist (data1, seq(-0.01,0.3,0.01),freq = FALSE,
main="Figure1.",xlab="return",lab=c(1,1,12))
lines(density(data1), col="blue")
Could anyone give me sone
2015 Jun 30
3
Loop for: mostrar el nombre de la variables
Buenos días:
Después de más de 20 años en SAS, ahora igual me toca trabajar en R. Y la transición es muy dura: la "lógica" de los dos lenguajes es, para mi, totalmente diferente. Disculpen si lo que pregunto es una obviedad, pero llevo todo el día con esto y no logro encontrar la respuesta adecuada con google.
Estoy intentado crear una función que realice una descriptiva simple de
2005 Sep 21
3
ts.intersect bug?
This code gives an error:
a <- ts(1:10, start=0, freq=10)
b <- ts(1:10, start=1, freq=10)
ts.intersect(a,b)
This one works normally (and correctly):
a <- ts(1:10, start=0)
b <- ts(1:10, start=1)
ts.intersect(a,b)
Antonio, Fabio Di Narzo.
P.S. How to switch off italian error messages to post on r-help?
> version
_
platform i386-pc-mingw32
arch i386
os
2008 Nov 13
2
SPEEX on iPhone ?
----- Original Message -----
From: "Conrad Parker" <conrad at metadecks.org>
To: "Vincent Burel" <vincent.burel at vb-audio.com>
Cc: "Jean-Marc Valin" <jean-marc.valin at usherbrooke.ca>; <speex-dev at xiph.org>
Sent: Thursday, November 13, 2008 1:18 AM
Subject: Re: [Speex-dev] SPEEX on iPhone ?
> 2008/11/13 Vincent Burel
2010 Oct 17
2
dpois().......bizarre warning messages
Dear Masters,
I have a question to submit
consider the following script
m<-4.95
obs<-rpois(36,m) # i generate 36 realization from a poisson(m)
hist(obs,freq=F)
curve(dpois(x,m),add=T,col="red") #i wish to overlay on the histogram the
theorical poisson density function
errors are returned saing the x vector doesn't contain integers....
really bizarre i can't give
2008 Nov 14
3
SPEEX on iPhone ?
----- Original Message -----
From: "Alexander Chemeris" <Alexander.Chemeris at sipez.com>
To: "Vincent Burel" <vincent.burel at vb-audio.com>
Cc: "Conrad Parker" <conrad at metadecks.org>; <speex-dev at xiph.org>; "Jean-Marc
Valin" <jean-marc.valin at usherbrooke.ca>
Sent: Thursday, November 13, 2008 11:31 PM
Subject: Re:
2004 Jul 30
3
Counting question
Hi All,
Here is something that sounds simple, but I'm having trouble getting it. I
have a data frame with two columns, the first is date and the second is
employee ID. I'd like to plot date on the horizontal axis, employee ID on
the vertical axis, and the number of times the employee appears for the
given date as a color. I've kluged something where I make a table
(table(date, id))
2012 Dec 13
2
Tamaño de la matriz de términos y memoria. Paquete TM
Hola a todos!
Tengo algunos problemas con el tamaño de la matriz de términos que obtengo. Los comandos que utilizo son los siguientes:
# carga librerias
library(tm)
library(wordcloud)
library(Rstem)
library(Snowball)
# lee el documento UTF-8 y lo convierte a ASCII
txt <-