] is a time-based class (e.g.
Date, POSIXt). If it is character, you will need to convert it to a
time-based class before calling xts().
Best,
--
Joshua Ulrich | FOSS Trading: www.fosstrading.com
___
R-help@r-project.org mailing list
https://stat.ethz.ch
,mean, na.rm=TRUE, na.pad=FALSE, align=right)
cbind(A1a,A1b)
A1a A1b
1 NA NA
2 NA NA
31 1.0
42 1.5
53 2.0
64 3.0
75 4.0
86 5.0
9 NA 5.5
10 NA 6.0
HTH,
--
Joshua Ulrich | FOSS Trading: www.fosstrading.com
mean(c(1,NA, NA), na.rm=TRUE)
[1] 1
A1a-zoo(c(NA
period.apply(x, endpoints(x,hours), mean)
[,1]
1969-12-31 18:30:00 1.0
1969-12-31 19:30:00 2.5
1969-12-31 20:30:00 4.5
1969-12-31 21:30:00 6.5
1969-12-31 22:30:00 8.5
1969-12-31 23:00:00 10.0
Best,
--
Joshua Ulrich
FOSS Trading: www.fosstrading.com
Please don't cross-post:
https://mailman.stat.ethz.ch/pipermail/r-sig-finance/2011q3/008230.html
--
Joshua Ulrich | FOSS Trading: www.fosstrading.com
On Wed, Jul 13, 2011 at 11:11 AM, Marcin P?�ciennik puc...@gmail.com wrote:
Dear list members,
I am trying to estimate parameters of the AR
of Economics
UDSM
Best,
--
Joshua Ulrich | FOSS Trading: www.fosstrading.com
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide
What's your problem? What have you tried?
--
Joshua Ulrich | FOSS Trading: www.fosstrading.com
On Mon, Jul 18, 2011 at 11:39 PM, kev946 klee...@gmail.com wrote:
Hello, I'm new to R and am having trouble plotting intraday data on a chart.
I haven't had any success with using ideas from some
command. What plot command are you using?
Dates don't have H:M:S; they're all zero. You don't provide a
sample of Dataset, so we don't know what your data look like.
Best,
--
Joshua Ulrich | FOSS Trading: www.fosstrading.com
__
R-help@r-project.org
,
John B. Nicholas, Ph.D
650-315-9895
HTH,
--
Joshua Ulrich | FOSS Trading: www.fosstrading.com
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting
,
--
Joshua Ulrich | FOSS Trading: www.fosstrading.com
On Sat, Jul 30, 2011 at 9:10 AM, Eduardo M. A. M.Mendes
emammen...@gmail.com wrote:
Dear R-users
I am new to R and struggling not to bother the list with silly questions.
I read the documentation on xts and searched for some
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
--
Joshua Ulrich | FOSS
, self-contained, reproducible code.
--
Joshua Ulrich | FOSS Trading: www.fosstrading.com
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
http://www.google.com/finance?fstype=iiq=F
results in a 400 'Bad request' error.
This seems to work for this one symbol, maybe it will work for others as well.
getFin(NYSE:F)
Best,
--
Joshua Ulrich | FOSS Trading: www.fosstrading.com
On Thu, Mar 17, 2011 at 10:48 PM, Sparks, John James jspa
-contained, reproducible code.
--
Joshua Ulrich | FOSS Trading: www.fosstrading.com
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
Please don't cross-post.
--
Joshua Ulrich | FOSS Trading: www.fosstrading.com
On Fri, Mar 25, 2011 at 8:33 AM, William Mok wwl_...@yahoo.co.uk wrote:
Hi All,
I am trying to plot 4 graphs on to 1 page using layout(...), or par(mfcol =
c(...)); with the function QQplot from the package
]])
median(Time03)
[1] 0.02
xtsTime - replicate(100,
+ system.time(do.call(merge, split(x$VALUE,x$ID)))[[1]])
median(xtsTime)
[1] 0
Best,
--
Joshua Ulrich | FOSS Trading: www.fosstrading.com
__
R-help@r-project.org mailing list
https://stat.ethz.ch
Hi Mauricio,
A Windows binary is now available on CRAN:
http://dirk.eddelbuettel.com/blog/2011/04/04/#rquantlib_0.3.7
Best,
--
Joshua Ulrich | FOSS Trading: www.fosstrading.com
On Tue, Mar 29, 2011 at 10:38 AM, Mauricio Romero
mauricio.rom...@quantil.com.co wrote:
Dear R users,
I have
still calls Fortran code, so that's why it's slower than
caTools::runmean. I've moved the EMA code to C, so it's about as fast
as it can be.
Noah, use EMA's ratio argument to replicate your for loop.
Hope this helps,
Michael Weylandt
Best,
--
Joshua Ulrich | FOSS Trading
, the function is in C. You could also use the compiler
package to compile your pure R function for a 3-4x speedup.
Best,
--
Joshua Ulrich | FOSS Trading: www.fosstrading.com
--
Noah Silverman
UCLA Department of Statistics
8117 Math Sciences Building #8208
Los Angeles, CA 90095
On Sep 2
/manuals/R-ints.html
cheers
Worik
Best,
--
Joshua Ulrich | FOSS Trading: www.fosstrading.com
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting
. greatly appreciated!
Thanks,
-=Doug
Best,
--
Joshua Ulrich | FOSS Trading: www.fosstrading.com
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting
R-help and R-devel.
Best,
--
Joshua Ulrich | FOSS Trading: www.fosstrading.com
On Wed, Oct 12, 2011 at 9:05 PM, R. Michael Weylandt
michael.weyla...@gmail.com michael.weyla...@gmail.com wrote:
To be honest, I don't frequently have occasion to wander over to R-devel and
most of what goes
Alex,
You may find an answer to your question by searching the R-SIG-Finance
archives (via rseek.org). If not, you may want to consider asking
your question on the R-SIG-Finance list.
Best,
--
Joshua Ulrich | FOSS Trading: www.fosstrading.com
R/Finance 2012: Applied Finance with R
Hi Sergey,
Internally, xts objects are a matrix with an index attribute. While
you *can* make a matrix of lists, that is not supported in zoo or xts.
Best,
--
Joshua Ulrich | FOSS Trading: www.fosstrading.com
R/Finance 2012: Applied Finance with R
www.RinFinance.com
On Sun, Mar 4, 2012
mistake related to asking
questions correctly according to forum specifications. Thanks for any help!
I will keep messing around with colClassesI feel like I am close to a
solution..however, am very far from understanding the problem.
Best,
--
Joshua Ulrich | FOSS Trading
equality.
cheers
Worik
--
Joshua Ulrich | FOSS Trading: www.fosstrading.com
R/Finance 2012: Applied Finance with R
www.RinFinance.com
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide
of sessionInfo(), or packageDescription(zoo). The
output from sessionInfo() would be more helpful because it provides
more information about your installation.
Worik
--
Joshua Ulrich | FOSS Trading: www.fosstrading.com
R/Finance 2012: Applied Finance with R
www.RinFinance.com
On Thu, Mar 29, 2012 at 3:56 PM, Worik R wor...@gmail.com wrote:
I have a reproducible example of my problem below
On Mon, Mar 26, 2012 at 9:22 AM, Joshua Ulrich josh.m.ulr...@gmail.com
wrote:
Given two identical string representations of POSIXct objects, can the
two
objects represent
consulting
rate.
Best,
--
Joshua Ulrich | FOSS Trading: www.fosstrading.com
R/Finance 2012: Applied Finance with R www.RinFinance.com
[[alternative HTML version deleted]]
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r
)
viewFinancials(IBM.f)
Thank you very much for the time you have given.
Regards,
Deb
Hope that helps,
--
Joshua Ulrich | FOSS Trading: www.fosstrading.com
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read
. You have a couple options:
a - data.frame(Date=Sys.Date()+1:10,
bid_hsi=trunc(21800+runif(10)*100))
# 1)
rownames(a) - a$Date
p - as.xts(a[,bid_hsi,drop=FALSE])
# 2)
p - as.xts(a[,bid_hsi,drop=FALSE], order.by=a$Date)
Best,
--
Joshua Ulrich | FOSS Trading: www.fosstrading.com
Try this (you
.
--
Joshua Ulrich | FOSS Trading: www.fosstrading.com
Cheers,
Chris
--
View this message in context:
http://r.789695.n4.nabble.com/XTS-merge-xts-seems-to-have-problem-with-character-vectors-tp3174125p3174125.html
Sent from the R help mailing list archive at Nabble.com
Use na.approx:
set.seed(21)
x - xts(rnorm(10), Sys.time()-10:1)
is.na(x) - 2:4
is.na(x) - 8:9
na.approx(x)
na.spline(x)
Best,
--
Joshua Ulrich | FOSS Trading: www.fosstrading.com
On Tue, Jan 11, 2011 at 12:08 AM, Rustamali Manesiya
rmanes...@gmail.com wrote:
Hello,
I have a xts
Hi Chris,
This seems to work on the sample data you provided.
FUN - function(x) {
x - xts(as.numeric(x),index(x))
period.apply(x, endpoints(x,secs), sum)
}
lapply(split.default(xSym$Size,xSym$Direction), FUN)
Best,
--
Joshua Ulrich | FOSS Trading: www.fosstrading.com
On Sun, Jan 9
Please do not cross post: http://stackoverflow.com/q/4720076/271616
At the minimum, it would be polite to respond here with the answer you
accepted on Stack Overflow.
--
Joshua Ulrich | FOSS Trading: www.fosstrading.com
On Mon, Jan 17, 2011 at 8:59 AM, Daniel Wu daniel_w...@163.com wrote
See ?plot.zoo, specifically plot.type=single.
--
Joshua Ulrich | FOSS Trading: www.fosstrading.com
On Sat, Jan 22, 2011 at 8:02 PM, Nick Torenvliet
nick.torenvl...@gmail.com wrote:
So I've got a 154 column wide xts time series object and I want to plot the
154 series on a single plot
-02 7.6343 NA
2010-04-03 7.5458 NA
2010-04-04 7.4532 28.30
2010-04-05 7.4040 28.38
2010-04-06 7.3317 28.21
2010-04-07 NA 28.31
2010-04-08 NA 28.47
Jeff's answer on StackOverflow explains why this works.
Best,
--
Joshua Ulrich | FOSS Trading
Deb,
See getQuote in the quantmod package. For example:
getQuote(SPY)
Be sure to read ?getQuote.
Best,
--
Joshua Ulrich | FOSS Trading: www.fosstrading.com
On Thu, Nov 3, 2011 at 5:05 PM, Deb Midya debmi...@yahoo.com wrote:
Michael,
Thanks for your response.
The link to the page
Deb,
Sorry, you can't do that with getQuote because Yahoo does not make
those data available historically. Generally, you will need to pay
for historical bid/ask (tick) data.
Best,
--
Joshua Ulrich | FOSS Trading: www.fosstrading.com
On Fri, Nov 4, 2011 at 6:10 AM, Deb Midya debmi
to generate a date format for
monthly data
which can be read unter PerformanceAnalytics.
I attach my csv data.
Thanks for your help!
yvonne
Best,
--
Joshua Ulrich | FOSS Trading: www.fosstrading.com
__
R-help@r-project.org mailing list
https
/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
--
Joshua Ulrich | FOSS Trading: www.fosstrading.com
__
R-help@r-project.org
,
Ted
Best,
--
Joshua Ulrich | FOSS Trading: www.fosstrading.com
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented
.
It will probably work if you build from source, which is also provided
on the site.
Greetings.
Carlos
Best,
--
Joshua Ulrich | FOSS Trading: www.fosstrading.com
--
View this message in context:
http://r.789695.n4.nabble.com/the-significance-of-BEKK-estimation-tp3716586p4328039.html
,
--
Joshua Ulrich | FOSS Trading: www.fosstrading.com
On Wed, Feb 8, 2012 at 3:50 AM, yuanwei zhuyuanw...@gmail.com wrote:
Hi Joshua,
Before I found your post here, I have viewed your source code for
'wilderSum'http://cran.r-project.org/src/contrib/TTR_0.21-0.tar.gz to
figure out how
to do the legwork.
-- Russ
--
Joshua Ulrich | FOSS Trading: www.fosstrading.com
On Sun, May 8, 2011 at 2:42 PM, Jeff Ryan jeff.a.r...@gmail.com wrote:
Hi Russ,
Colnames don't get rewritten if they already exist. The reason is due to
performance and how cbind is written at the R
code.
--
Joshua Ulrich | FOSS Trading: www.fosstrading.com
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal
=seq(start(w03_11temp_z),
end(w03_11temp_z), by=1)))
w03_11temp_x - na.approx(w03_11temp_y)
w03_11temp_w - data.frame(date=format(index(w03_11temp_x), %d.%m.%y),
time=format(index(w03_11temp_x), %H:%M:%S),
temp=coredata(w03_11temp_x))
--
Joshua Ulrich | FOSS Trading
# object that has all the index values you want
Z - merge(z, zoo(,seq(start(z),end(z),by=1 min)))
# interpolate between the 5-min observatoins
Z - na.approx(Z)
HTH,
--
Joshua Ulrich | about.me/joshuaulrich
FOSS Trading | www.fosstrading.com
R/Finance 2013: Applied Finance with R
Cross-posted, verbatim, on stackoverflow:
http://stackoverflow.com/q/15203347/271616
--
Joshua Ulrich | about.me/joshuaulrich
FOSS Trading | www.fosstrading.com
R/Finance 2013: Applied Finance with R | www.RinFinance.com
On Mon, Mar 4, 2013 at 7:07 AM, Аскар Нысанов nysanas...@mail.ru
,
--
Joshua Ulrich | FOSS Trading: www.fosstrading.com
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained
Eric,
I'd be happy to help. Please follow the posting guide (specifically
the Surprising behavior and bugs section) and provide a *minimal*,
reproducible example and the output from sessionInfo().
http://www.r-project.org/posting-guide.html
Best,
--
Joshua Ulrich | FOSS Trading
it's not well documented, what it's doing is pretty clear from
the source:
R .indexDate
function (x)
{
.index(x)%/%86400L
}
environment: namespace:xts
thanks and best regards
matt johnson
Best,
--
Joshua Ulrich | FOSS Trading: www.fosstrading.com
, fnMap=mappingFun)
Best,
--
Joshua Ulrich | FOSS Trading: www.fosstrading.com
On Fri, Jun 15, 2012 at 3:24 AM, David-Michael Lincke
dlin...@lincke.com wrote:
Function DEoptim in package DEoptim for differential evolution defines an
optional parameter fnMap:
fnMap
an optional function
in the vignette.
Best regards,
David
Best,
--
Joshua Ulrich | FOSS Trading: www.fosstrading.com
-Original Message-
From: Joshua Ulrich [mailto:josh.m.ulr...@gmail.com]
Sent: Saturday, June 16, 2012 3:29 AM
To: David-Michael Lincke
Cc: r-help@r-project.org
Subject: Re: [R] DEoptim example
On Tue, Jun 19, 2012 at 6:07 PM, Bert Gunter gunter.ber...@gene.com wrote:
1. Don't double post. (obviously belongs on finance list)
2. Homework? (we don't do homework on r-help)
We don't do homework on R-SIG-Finance either...
-- Bert
Best,
--
Joshua Ulrich | FOSS Trading
Load the data into an environment, then merge them using do.call():
series.env - new.env()
getSymbols(ticker.list, src='FRED', env=series.env)
series - do.call(merge, as.list(series.env))
HTH,
--
Joshua Ulrich | FOSS Trading: www.fosstrading.com
On Sat, Jul 7, 2012 at 7:00 AM, Cren
%M%S
x - xts(Q_hourly[Q], as.POSIXct(Q_hourly$datetime.str, format=fmt))
Best,
--
Joshua Ulrich | about.me/joshuaulrich
FOSS Trading | www.fosstrading.com
--
View this message in context:
http://r.789695.n4.nabble.com/calculate-within-day-correlations-tp4643091p4643206.html
Sent from
(c,lapply(Dt, lastof, 23, 59, 59)))
--
Joshua Ulrich | about.me/joshuaulrich
FOSS Trading | www.fosstrading.com
- Original Message -
From: R. Michael Weylandt michael.weyla...@gmail.com
To: Rantony antony.akk...@ge.com
Cc: r-help@r-project.org
Sent: Thursday, September 27, 2012
can't iterate over dates/times anyway, just iterate over the
xts index and what you want to do is trivial (as you said).
--
Noah Silverman, M.S.
UCLA Department of Statistics
8117 Math Sciences Building
Los Angeles, CA 90095
Best,
--
Joshua Ulrich | about.me/joshuaulrich
FOSS Trading
guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
--
Joshua Ulrich | about.me/joshuaulrich
FOSS Trading | www.fosstrading.com
__
R-help@r-project.org mailing list
https
or factor).
Best,
--
Joshua Ulrich | about.me/joshuaulrich
FOSS Trading | www.fosstrading.com
On Wed, Oct 17, 2012 at 2:15 PM, sf631 chad.g...@gmail.com wrote:
I'm not the original poster, but I do have the same question.
I have pulled in data via RODBC into a data frame, which looks like below
intervals. I'd suggest using a for loop with the window() function.
But be careful about timezone and DST issues if your data is more
frequent than daily.
Cheers,
Michael
Best,
--
Joshua Ulrich | about.me/joshuaulrich
FOSS Trading | www.fosstrading.com
On Fri, Oct 26, 2012 at 7:33 PM
-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Best,
--
Joshua Ulrich | about.me/joshuaulrich
FOSS Trading
, not discrete, compounding by default.
So you need:
ROC(test$Y, n=1, type=discrete)
Best,
--
Joshua Ulrich | about.me/joshuaulrich
FOSS Trading | www.fosstrading.com
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do
r != R (you mis-typed the first argument to VaR). This works:
library(PerformanceAnalytics)
data(sample_matrix)
x - Return.calculate(as.xts(sample_matrix))
VaR(R=x, p=0.99, method=historical)
Best,
--
Joshua Ulrich | about.me/joshuaulrich
FOSS Trading | www.fosstrading.com
On Tue, Jun 25
someone help me using this data or help me to download different data?
Use quantmod::getSymbols.
library(quantmod)
getSymbols(MCD)
str(MCD)
And read ?xts for ways to subset the MCD object.
Best,
--
Joshua Ulrich | about.me/joshuaulrich
FOSS Trading | www.fosstrading.com
Cross-posted on Stack Overflow:
http://stackoverflow.com/q/11567745/271616
--
Joshua Ulrich | FOSS Trading: www.fosstrading.com
On Thu, Jul 19, 2012 at 12:23 PM, cursethiscure
caolan.harv...@mail.dcu.ie wrote:
I am working with xts dependent data, and my code is as follows (the problem
Same post on Stack Overflow (again):
http://stackoverflow.com/q/11567745/271616
--
Joshua Ulrich | FOSS Trading: www.fosstrading.com
On Thu, Jul 19, 2012 at 11:15 AM, cursethiscure
caolan.harv...@mail.dcu.ie wrote:
I think the code is part of the RTAQ package but is not included in it, as I
/datetime.c, for anyone interested
in digging further.
Best,
--
Joshua Ulrich | about.me/joshuaulrich
FOSS Trading | www.fosstrading.com
On Wed, Aug 1, 2012 at 6:10 PM, Jeff Newmiller jdnew...@dcn.davis.ca.us wrote:
http://en.wikipedia.org/wiki/Year_2038_problem
Workaround 1: Avoid collecting data
commented, minimal, self-contained, reproducible code.
Best,
--
Joshua Ulrich | about.me/joshuaulrich
FOSS Trading | www.fosstrading.com
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http
, as is generally the case, use the as method:
as.ts(testTSRad)
Best,
--
Joshua Ulrich | about.me/joshuaulrich
FOSS Trading | www.fosstrading.com
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http
:
Hello,
On Tue, Mar 11, 2014 at 8:45 PM, Joshua Ulrich josh.m.ulr...@gmail.com
wrote:
On Tue, Mar 11, 2014 at 12:14 AM, Bill william...@gmail.com wrote:
Hello. I have a dataframe that has a date column. The intervals between
dates vary. I want to convert this to a ts object. I was able
,
--
Joshua Ulrich | about.me/joshuaulrich
FOSS Trading | www.fosstrading.com
On Sun, May 18, 2014 at 9:25 AM, Pete freeri...@gmail.com wrote:
I have 3 xts objects: test, cond1, cond2
You can download here:
https://dl.dropboxusercontent.com/u/102669/obj.rar
My problem is very simple
in the footer. Here are some
suggestions of how to create a *minimal*, reproducible example:
http://stackoverflow.com/q/5963269/271616
Best,
--
Joshua Ulrich | about.me/joshuaulrich
FOSS Trading | www.fosstrading.com
__
R-help@r-project.org mailing list
(YHOO)
YHOO$YHOO.Return - ROC(Ad(YHOO),type=discrete)
f - function(x,n) {
coredata(last(x,n))
}
# one way
x - sapply(split(YHOO$YHOO.Return, months), f, n=10)
rowMeans(x)
# another way
ep - endpoints(YHOO,months)
y - period.apply(YHOO$YHOO.Return, ep, f, n=10)
colMeans(y)
Best,
--
Joshua Ulrich
,
--
Joshua Ulrich | about.me/joshuaulrich
FOSS Trading | www.fosstrading.com
On Fri, Nov 30, 2012 at 11:28 AM, arun smartpink...@yahoo.com wrote:
Hi,
May be this helps:
dat1-read.table(text=
---data---
,header=TRUE,stringsAsFactors=FALSE)
library(zoo)
dat1$date
+ R CMD install.
I'd start with building xts from source (admittedly harder because it
has c code unlike PA) but so goes dependency management.
Since you're on Windows, I'd also just (re-)remind you to make sure
your path has no spaces in it.
Michael
Best,
--
Joshua Ulrich | about.me
Cross-posted on Stackoverflow:
http://stackoverflow.com/q/13935782/271616
--
Joshua Ulrich | about.me/joshuaulrich
FOSS Trading | www.fosstrading.com
On Tue, Dec 18, 2012 at 7:59 AM, 박상규 birdfir...@naver.com wrote:
Hello,
I'd like to convert the below time-series data with fft or wavelet
chron indexes aren't well-supported in xts. Convert the index class
to POSIXct and it will plot.
indexClass(zc) - POSIXct
plot(zc)
Best,
--
Joshua Ulrich | about.me/joshuaulrich
FOSS Trading | www.fosstrading.com
On Wed, Dec 19, 2012 at 9:47 AM, 박상규 birdfir...@naver.com wrote:
Thank
that time-series objects will generally put time periods in
ascending order.
library(TTR)
d$st.dev - runSD(d$Close,4)
z - zoo(d[,2,FALSE],as.Date(d[,1]))
z$st.dev - runSD(z$Close,4)
x - as.xts(z)
x$st.dev - runSD(x$Close,4)
HTH,
--
Joshua Ulrich | FOSS Trading: www.fosstrading.com
--
View
would appreciate patches.
Best,
--
Joshua Ulrich | FOSS Trading: www.fosstrading.com
On Sat, Jan 29, 2011 at 7:39 PM, Anyi Zhu anyi@gmail.com wrote:
Hi,
Just wondering for the SMA and EMA in package TTR, is it possible to me to
code it so that, say if I need to calculate SMA (x, n=100
for data analysis, statistical
modeling, visualization, and programming. Anyone with a background or
interest in R is welcome!
The group will use meetup.com to communicate with members. Please sign
up to receive updates and RSVP to events:
http://www.meetup.com/Saint-Louis-RUG/
Best,
--
Joshua Ulrich
Hi Chris,
Perhaps something like this?
require(xts)
ds - options(digits.secs=6) # so we can see sub-seconds
x - xts(1:10, as.POSIXct(2011-01-21) + c(1,1,1,2:8)/1e3)
x
indexFormat(x) - %H:%M:%OS3
x
Hope that helps,
--
Joshua Ulrich | FOSS Trading: www.fosstrading.com
On Fri, Mar 4, 2011
Hi David,
On Sat, Mar 5, 2011 at 11:00 PM, David Winsemius dwinsem...@comcast.net wrote:
On Mar 5, 2011, at 11:28 AM, Joshua Ulrich wrote:
Hi Chris,
Perhaps something like this?
require(xts)
ds - options(digits.secs=6) # so we can see sub-seconds
x - xts(1:10, as.POSIXct(2011-01-21) + c
137.2938.40
# 2011-01-06 32.04 19.79 57.49 138.0737.23
# 2011-01-07 31.95 19.77 57.20 138.3537.30
# 2011-01-10 31.55 19.76 58.22 142.6937.04
Hope that helps,
--
Joshua Ulrich | FOSS Trading: www.fosstrading.com
On Sun
=,, header=TRUE, FUN=as.POSIXct, format=%d.%m.%Y %H:%M:%S))
dat1[T02:30/T03:00]
Best,
--
Joshua Ulrich | about.me/joshuaulrich
FOSS Trading | www.fosstrading.com
R/Finance 2013: Applied Finance with R | www.RinFinance.com
On Sat, Mar 9, 2013 at 11:59 AM, arun smartpink...@yahoo.com wrote
On Sat, Mar 16, 2013 at 2:25 PM, Pete freeri...@gmail.com wrote:
Hi to all, i'm new to R
I have an xts object.
Can i find:
a) how many NA are in my object ?
sum(is.na(obj))
b) eventually where (in which line) they are
which(is.na(obj))
Thank you
Best,
--
Joshua Ulrich | about.me
)
aaabbbcccddd
2001-01-03 179.7061 239.11 1712.6 271.10
2001-01-04 181.1751 243.24 1689.1 267.15
Best,
--
Joshua Ulrich | about.me/joshuaulrich
FOSS Trading | www.fosstrading.com
R/Finance 2013: Applied Finance with R | www.RinFinance.com
On Sun, Apr 7, 2013 at 8:34
'fill',
'suffixes', or 'drop'.
Best,
--
Joshua Ulrich | about.me/joshuaulrich
FOSS Trading | www.fosstrading.com
R/Finance 2013: Applied Finance with R | www.RinFinance.com
On Mon, Apr 8, 2013 at 2:54 PM, Harry Mamaysky h.mamay...@gmail.com wrote:
Can someone explain why this happens when
at gmail.com
--
Joshua Ulrich | about.me/joshuaulrich
FOSS Trading | www.fosstrading.com
R/Finance 2013: Applied Finance with R | www.RinFinance.com
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read
can always convert the final object
back to zoo.
Regards,
Anton Lebedevich.
Best,
--
Joshua Ulrich | about.me/joshuaulrich
FOSS Trading | www.fosstrading.com
R/Finance 2013: Applied Finance with R | www.RinFinance.com
__
R-help@r-project.org
Hi David,
Unfortunately, there's no way for the user to do that. You would need
to change line 522 in de4_0.c (where the printing occurs) and
rebuild/install the package.
Best,
--
Joshua Ulrich | about.me/joshuaulrich
FOSS Trading | www.fosstrading.com
R/Finance 2013: Applied Finance
] )
But, that is horrendously slow.
Suggestions?
Use lag.
Best,
--
Joshua Ulrich | about.me/joshuaulrich
FOSS Trading | www.fosstrading.com
R/Finance 2013: Applied Finance with R | www.RinFinance.com
__
R-help@r-project.org mailing list
https://stat.ethz.ch
(x)
Best,
--
Joshua Ulrich | FOSS Trading: www.fosstrading.com
R/Finance 2012: Applied Finance with R
www.RinFinance.com
On Tue, May 8, 2012 at 3:14 AM, oswi3605 je...@mailinator.com wrote:
Hello,
Im currently writing my bachelor thesis in statistical finance and i have
run into a small
get this working
Thanks!
Max
Best,
--
Joshua Ulrich | FOSS Trading: www.fosstrading.com
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
hundread times)
Then this:
1970-01-01 0.134920635 0.349206349 0.1778
snip
1970-01-01 0.734126984 0.996031746 0.78650794
On Tue, May 22, 2012 at 6:26 PM, Joshua Ulrich josh.m.ulr...@gmail.com
wrote:
On Tue, May 22, 2012 at 2:15 AM, R-type Studios rtypestud...@gmail.com
wrote:
Hi Everyone
Have you read these instructions?
http://cran.r-project.org/bin/linux/ubuntu/README.html
They say to run
sudo apt-get install r-base-dev
which should install 'build-essential' (which is an Ubuntu package,
not an R package).
--
Joshua Ulrich | about.me/joshuaulrich
FOSS Trading
series1's index to yearmon, and the comparison works.
index(series1) - as.yearmon(index(series1))
tail(series1 series2)
GSPC
2013-06-01 TRUE
2013-07-01 TRUE
2013-08-01 TRUE
2013-09-01 TRUE
2013-10-01 TRUE
2013-11-01 TRUE
Best,
--
Joshua Ulrich | about.me/joshuaulrich
FOSS Trading
))) dim(object) - c(length(object), 1)
colnames(object)[NCOL(object)] - x
} else {
...
Best,
--
Joshua Ulrich | about.me/joshuaulrich
FOSS Trading | www.fosstrading.com
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman
NA
#2013-11-13 NANA 0.0067416934
#2013-11-140.010764042 0.0028130469NA
Best,
--
Joshua Ulrich | about.me/joshuaulrich
FOSS Trading | www.fosstrading.com
__
R-help@r-project.org mailing list
that is the end of it.
Does anyone know if it is possible to run quantstrat with the current version
of R?
Yep, see here: http://stackoverflow.com/q/11105131/271616
Best,
--
Joshua Ulrich | about.me/joshuaulrich
FOSS Trading | www.fosstrading.com
1 - 100 of 176 matches
Mail list logo