Re: [R] Help Parsing String? From HTML

2025-01-05 Thread Joshua Ulrich
On Sun, Jan 5, 2025 at 5:54 PM Joshua Ulrich wrote: > > On Sun, Jan 5, 2025 at 5:41 PM Sparks, John wrote: > > > > Hi Josh, > > > > Thanks for helping me with my second topic of the day. > > > > I am scraping from the fmpcloud website and trying to get d

Re: [R] Help Parsing String? From HTML

2025-01-05 Thread Joshua Ulrich
41eb87c43cfa7e124419cb180d7e";) > --John Sparks > > From: Joshua Ulrich > Sent: Sunday, January 5, 2025 2:55 PM > To: Sparks, John > Cc: r-help@r-project.org > Subject: Re: [R] Help Parsing String? From HTML > > CAUTION: External Se

Re: [R] Help Parsing String? From HTML

2025-01-05 Thread Joshua Ulrich
arsing than me who can see a way to solve this in minutes. > > Any guidance would be appreciated. > > --John Sparks > > [[alternative HTML version deleted]] > > __ > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailman/listin

Re: [R] Using library(TTR) Calculate ATR by Symbol

2025-01-05 Thread Joshua Ulrich
. For example: atr <- my_atr(Hist) > Thanks, > --JJS > > ____ > From: Joshua Ulrich > Sent: Sunday, January 5, 2025 11:31 AM > To: Sparks, John > Cc: R-help@r-project.org > Subject: Re: Using library(TTR) Calculate ATR by Symbol >

Re: [R] Using library(TTR) Calculate ATR by Symbol

2025-01-05 Thread Joshua Ulrich
430.53, 424.83, > 421.5, 418.58, 423.35)), class = "data.frame", row.names = c(NA, > -80L)) > > library(TTR) > atr <- ATR(Hist[,c("high","low","close")], n=14) > atr > > Here's a function that splits your data into a list by symbol, then does th

Re: [R] strptime with +03:00 zone designator

2023-11-06 Thread Joshua Ulrich
On Mon, Nov 6, 2023 at 3:02 AM Martin Maechler wrote: > > > Richard O'Keefe > > on Mon, 6 Nov 2023 18:37:34 +1300 writes: > > > Thanks to all who replied. On Mon, 6 Nov 2023 at 18:37, > > Richard O'Keefe wrote: > > >> OK, so the consensus is (1) One cannot make strptime >

Re: [R] Unexpected result for df column $ subset with non-existent name

2022-10-30 Thread Joshua Ulrich
; > __ > > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see > > https://stat.ethz.ch/mailman/listinfo/r-help > > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > > and provide commen

Re: [R] Getting "Error in ect, plot.new has not been called yet" despite grouping plot call

2022-10-06 Thread Joshua Ulrich
t; > > > > > From: Rolf Turner > > Sent: Wednesday, October 5, 2022 6:06 AM > > To: Deramus, Thomas Patrick > > Cc: r-help@r-project.org > > Subject: Re: [R] Getting "Error in ect, plot.new has not been called yet" > > despite grouping plot call > > >

Re: [R] Getting "Error in ect, plot.new has not been called yet" despite grouping plot call

2022-10-05 Thread Joshua Ulrich
Hi, My hunch is that you need to add print(plout) before you call dev.off(). See https://stackoverflow.com/a/39853861 Try that and let me know if that works. If not, I'll take a closer look later. Best, Josh On Wed, Oct 5, 2022, 1:40 AM Deramus, Thomas Patrick wrote: > Sorry to cross-post on

Re: [R] getDividents() doesn't work

2022-09-20 Thread Joshua Ulrich
ling list -- To UNSUBSCRIBE and more, see > 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 | about.me/joshuaulrich FOSS Trading |

Re: [R] Finance & R

2020-12-23 Thread Joshua Ulrich
_ > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see > 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

Re: [R] add trailing dates with rbind

2020-08-12 Thread Joshua Ulrich
-- To > > UNSUBSCRIBE and more, see > > https://stat.ethz.ch/mailman/listinfo/r-help > > <https://stat.ethz.ch/mailman/listinfo/r-help> > > PLEASE do read the posting guide > > http://www.R-project.org/posting-guide.html > > <http://www.r-project.org/posting-guide.html> > > and

Re: [R] hist from a list

2020-07-31 Thread Joshua Ulrich
mutate_fun = periodReturn, # This specifies what to do > >> with that column > >> period = "daily", # This argument calculates Daily > >> returns > >> col_rename = "idr_returns") # r

Re: [R] Creating xts objects from csv file

2020-07-21 Thread Joshua Ulrich
- as.POSIXlt(myDat$DTG, format = "%m/%d/%Y %H:%M") >irreg <- xts(x=myDat[,-1],order.by= as.POSIXct(myDat$DTG)) > >which seemed to work, so I'm not sure what I was doing wrong. But I > also gather I should probably use POSIXct objects as opposed to POSIXl

Re: [R] Creating xts objects from csv file

2020-07-21 Thread Joshua Ulrich
at.xts <- xts(x = dat[,-1], order.by = dat[,1]) > > > > head(dat.xts) > > > > Sincerely > > > > Jeff Reichman > > > [[alternative HTML version deleted]] > > __ > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see

Re: [R] Plot base 100

2020-07-20 Thread Joshua Ulrich
> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see > 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,

Re: [R] outer join of xts's

2020-01-04 Thread Joshua Ulrich
tc were not exported. I have considered un-exporting them. The reason I don't is because it would break code like yours. I hope that helps you understand my rationale. Best, Josh > Regards, > Eric > > > On Fri, Jan 3, 2020 at 3:45 PM Joshua Ulrich wrote: > > > >

Re: [R] outer join of xts's

2020-01-03 Thread Joshua Ulrich
gt; > >>> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see > > > >>> https://stat.ethz.ch/mailman/listinfo/r-help > > > >>> PLEASE do read the posting guide > > > >> http://www.R-project.org/posting-guide.html > > > &g

[R] Method dispatch sometimes failsfor lavaan objects

2019-12-05 Thread Ulrich KELLER
Hello, in some R sessions, method dispatch for objects of the (S4) class “lavaan" fail. An example from such a “bad” session: > library(lavaan) > HS.model <- ' visual =~ x1 + x2 + x3 + textual =~ x4 + x5 + x6 + speed =~ x7 + x8 + x9 ' > fit <- cfa(HS.model, data =

Re: [R] Curl4, Quantmod, tseries and forecast

2019-07-07 Thread Joshua Ulrich
sets methods base > > loaded via a namespace (and not attached): > [1] compiler_3.6.0 tools_3.6.0 > > __ > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailman/listinf

Re: [R] Failed to install RQuantLib in Ubuntu machine

2019-01-03 Thread Joshua Ulrich
eption occurred. R is aborting now ...* > > *Segmentation fault (core dumped)* > > *ERROR: loading failed* > > ** removing ‘/usr/local/lib/R/site-library/RQuantLib’* > > > *The downloaded source packages are in* > > * ‘/tmp/RtmpPvzBa6/downloaded_packages’* > > *Warnin

Re: [R] Trying to Generalize a Function in R

2018-08-09 Thread Joshua Ulrich
gt;>> length = length( symbol$AVB.Close ) >>> because the name that holds the closing price is a function of the stock >>> symbol. >>> >>> Thanks, >>> Bob >>> >>> __ >>> R-he

Re: [R] adding overall constraint in optim()

2018-05-03 Thread Joshua Ulrich
; >>> Enduring Investments LLC >>> W: 973.457.4602 >>> C: 551.655.8006 >>> >>> >>>[[alternative HTML version deleted]] >>> >>> __ >>> R-help@r-project.org mailing list --

Re: [R] Split charts with ggplot2, tidyquant

2018-01-18 Thread Joshua Ulrich
> [[alternative HTML version deleted]] > > ______ > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posti

Re: [R] RQuantLib

2017-12-28 Thread Joshua Ulrich
d therefore QuantLib itself) from source. > Thanks, > Bob > > __ > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commen

Re: [R] Problem with tq_mutate_xy() from the tidyquant package

2017-10-28 Thread Joshua Ulrich
> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see > 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. --

Re: [R] require help

2017-09-22 Thread Joshua Ulrich
> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see > 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 c

Re: [R] Using quantmod to obtain current Dow Jones index

2017-09-07 Thread Joshua Ulrich
t.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 | about.me/joshuaulrich FOSS Trading | www.fosstrading.com R/Finance 2017 | www.rinfinanc

Re: [R] Zoo rolling window with increasing window size

2017-08-10 Thread Joshua Ulrich
r idea? Thanks, > > On Fri, Aug 11, 2017 at 12:04 AM, Joshua Ulrich > wrote: >> Use a `width` of integer index locations. And you likely want = >> "right" (or rollapplyr(), as I used). >> >> R> set.seed(21) >> R> x <- rnorm(10) >> R&

Re: [R] Zoo rolling window with increasing window size

2017-08-10 Thread Joshua Ulrich
> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see > 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

Re: [R] Looping Through QuantMod Objects

2017-08-02 Thread Joshua Ulrich
, 2500, 9952, 80610, 53329, NA, 53329, 64328, > 24062, NA, 12989, 170990, NA, NA, 27416, NA, 92284, NA, -1117, 119355, > 290345, NA, 5578.75, NA, 14845, 25077, 17460, NA, 27219, 2111, NA, 14124, > 68531, 39015, -18391, 4616, 4142, 130162, 3764, 231839, 30196, 7689, 6308, > N

Re: [R] how apply.monthly() in package xts works

2017-05-03 Thread Joshua Ulrich
On Thu, Mar 9, 2017 at 9:03 PM, Joshua Ulrich wrote: > On Thu, Mar 9, 2017 at 3:46 PM, Joshua Ulrich wrote: >> On Thu, Mar 9, 2017 at 3:31 PM, Waichler, Scott R >> wrote: >>> Hi, >>> >>> I found that apply.monthly() in xts does not work as I expect

Re: [R] Quantmod cant download data

2017-04-18 Thread Joshua Ulrich
you please help to resolve this issue. > > Thanks for your time. > > ______ > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://ww

Re: [R] CRAN package submission failed on solaris : timezone problem

2017-04-12 Thread Joshua Ulrich
rvers. > > Can you please help me? > > regards > > Servet > > > [[alternative HTML version deleted]] > > __ > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mai

Re: [R] how apply.monthly() in package xts works

2017-03-09 Thread Joshua Ulrich
On Thu, Mar 9, 2017 at 3:46 PM, Joshua Ulrich wrote: > On Thu, Mar 9, 2017 at 3:31 PM, Waichler, Scott R > wrote: >> Hi, >> >> I found that apply.monthly() in xts does not work as I expected in the case >> of a sparse timeseries: >> >> my.dates <- a

Re: [R] how apply.monthly() in package xts works

2017-03-09 Thread Joshua Ulrich
uss the problem of sparse data? No, because it shouldn't be a problem. :) > > Regards, > Scott Waichler > Pacific Northwest National Laboratory > Richland, WA USA > > __ > R-help@r-project.org mailing list -- To

Re: [R] HTTP status was '404 Not Found'

2017-03-07 Thread Joshua Ulrich
e, as it did in this case. > __ > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provid

Re: [R] order.by requires an appropriate time-based object

2017-02-27 Thread Joshua Ulrich
.hold.curve) > nan, nan > Error in merge.xts(..., all = all, fill = fill, suffixes = suffixes) : > 'NA' not allowed in 'index' > > > > > > On Monday, 27 February 2017, 12:05, Joshua Ulrich > wrote: > > > Please provide a minimal, reproduc

Re: [R] order.by requires an appropriate time-based object

2017-02-26 Thread Joshua Ulrich
gt; and provide commented, minimal, self-contained, reproducible code. -- Joshua Ulrich | about.me/joshuaulrich FOSS Trading | www.fosstrading.com R/Finance 2017 | www.rinfinance.com __ R-help@r-project.org mailing list -- To UNSUBSCRIBE an

Re: [R] How to create 10 minute time series from hourly data

2017-02-02 Thread Joshua Ulrich
.2 92.1 92.1 92.1 92 ... > $ TEMPERATURE: num 25.2 18 18 16.3 15 ... > $ Level_m : num 9.4 9.4 9.39 9.39 9.39 ... > > [[alternative HTML version deleted]] > > __ > R-help@r-project.org mailing li

Re: [R] how to transform db query result into a set of timeseries ?

2016-09-07 Thread Joshua Ulrich
___ > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see > 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

Re: [R] source() does not include added code

2016-08-31 Thread Joshua Ulrich
00 @ 110.399553" > Time difference of 0.3014359 secs > [1] "trade blotter portfolio update:" > Time difference of 0.1732061 secs > >> > > __ > R-help@r-project.org mailing list -- To

Re: [R] source() does not include added code

2016-08-31 Thread Joshua Ulrich
.org mailing list -- To UNSUBSCRIBE and more, see > 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 | about.me/joshuaul

Re: [R] Quantmod - modify decimal places

2016-05-27 Thread Joshua Ulrich
he data. You need a more accurate data source. > Any help greatly appreciated. > > Thanks > Dave > > [[alternative HTML version deleted]] > > __ > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see > htt

Re: [R] [R-SIG-Finance] [VC++ calling R] How to create a real-time interactive ticking time-series chart using dygraph via RInside?

2016-04-11 Thread Joshua Ulrich
> > > > > > > [[alternative HTML version deleted]] > > > ___ > r-sig-fina...@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-sig-finance > -- Subscriber-posting only. If you wan

Re: [R] Quantmod abline and axis configuration

2016-04-09 Thread Joshua Ulrich
ds$col=c('red','blue','green') > t$BBands$col='blue' > reChart(theme="t") > > [[alternative HTML version deleted]] > > ______ > R-help@r-project.org mailing list -- To

Re: [R] Is this a bug in quantmod::OpCl?

2016-04-08 Thread Joshua Ulrich
On Fri, Apr 8, 2016 at 10:51 AM, James Hirschorn wrote: > > > On 04/06/2016 07:58 PM, Joshua Ulrich wrote: >> >> On Tue, Apr 5, 2016 at 9:17 PM, James Hirschorn >> wrote: >>> >>> OpCl works on xts objects but not on quantmod.OHLC objects. Is

Re: [R] Is this a bug in quantmod::OpCl?

2016-04-06 Thread Joshua Ulrich
> # OK > OpCl(as.xts(q)) > > [[alternative HTML version deleted]] > > __ > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting gui

Re: [R] ts or xts with high-frequency data within a year

2016-03-30 Thread Joshua Ulrich
___ >>> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see >>> https://stat.ethz.ch/mailman/listinfo/r-help >>> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html >>> and provide commen

Re: [R] Conversion problem with write.csv and as.character()

2016-03-10 Thread Joshua Ulrich
Peter > > [[alternative HTML version deleted]] > > __ > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/pos

Re: [R] Downloading Google finance data onto R

2016-01-26 Thread Joshua Ulrich
ols("SPY", src="google") As I said in my prior response, Google does not make data for LIQUIDBEES available for download. > Duncan Murdoch > > > __ > R-help@r-project.org mailing list --

Re: [R] Downloading Google finance data onto R

2016-01-26 Thread Joshua Ulrich
ical?q=NYSEARCA%3ASPY That page has a "Download to spreadsheet" link. The page for LIQUIDBEES does not. So you have to scrape the data from the HTML. > Thanks for your help. > > __ > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailm

Re: [R] unexpected behaviour of an extended time series (using packages spuRs and xts)

2016-01-22 Thread Joshua Ulrich
re-Assistant, HDR > > Ecole des Mines d’Alès (C2MA, site de Pau) > > Ingénierie de l'aspect visuel et tactile des matériaux > > Pôle « Recherche sur les Interactions des Matériaux avec leur > Environnement » (RIME) > > Hélioparc, 2 av. P. Angot, F-64053 PAU CEDEX 9 >

Re: [R] xts/zoo index problem?

2016-01-18 Thread Joshua Ulrich
ond line doesn't show the value? Something to do with miliseconds ? >> Thanks >> CE >> >> __ >> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see >> https://stat.ethz.ch/mailman/listinfo/r-help >

Re: [R] Trading Strategy and Bootstrap

2015-12-15 Thread Joshua Ulrich
sult of viruses. > > Please refer to http://disclaimer.bnymellon.com/eu.htm for certain > disclosures relating to European legal entities. > [[alternative HTML version deleted]] > > __ > R-help@r-project.org mailing list -- To UNS

Re: [R] define number of clusters in kmeans/apcluster analysis

2015-12-15 Thread Ulrich Bodenhofer
es the result you expect: z2 <- scale(z) m <- apclusterK(negDistMat(r=2), z2, K=2, verbose=TRUE) plot(m, z2) plot(m, z) ## it even works to superimpose the clustering result on the original data I hope that helps. Best regards, Ulrich

Re: [R] Probing a protein sequence alignment in R

2015-11-25 Thread Ulrich Bodenhofer
## seq1 against seq3: which(strsplit(as.character(aln)[1], split="")[[1]] != strsplit(as.character(aln)[3], split="")[[1]]) I hope this helps. Best regards, Ulrich P.S.: I fully agree with Bert that the Bioconductor support forum would be a good place to discuss this.

Re: [R] Working with Data Frames

2015-11-03 Thread Joshua Ulrich
_ > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see > 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

Re: [R] Bollinger Band quantmod

2015-10-22 Thread Joshua Ulrich
What levels are you referring to? > [[alternative HTML version deleted]] > > __ > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html >

Re: [R] Loading data chartseries

2015-09-23 Thread Joshua Ulrich
t="%m/%d/%Y")) chartSeries(X, theme="white", TA="addBBands(200,2)") > [[alternative HTML version deleted]] > > __ > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/ma

Re: [R] merge xts objects with different data types ?

2015-09-03 Thread Joshua Ulrich
> > ______ > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see > 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-

Re: [R] Getting previous day data and implementing it for quantstrat

2015-08-12 Thread Joshua Ulrich
> > > > > > -- > View this message in context: > http://r.789695.n4.nabble.com/Getting-previous-day-data-and-implementing-it-for-quantstrat-tp4710978.html > Sent from the R help mailing list archive at Nabble.com. > > ______

Re: [R] inbuilt crossover function for backtesting

2015-08-10 Thread Joshua Ulrich
_____ > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see > 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, rep

Re: [R] inbuilt crossover function for backtesting

2015-08-09 Thread Joshua Ulrich
e R help mailing list archive at Nabble.com. > > __ > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.ht

Re: [R] Milisecond problem in as.POSIXct ?

2015-06-14 Thread Joshua Ulrich
On Wed, Jun 10, 2015 at 8:05 PM, Joshua Ulrich wrote: > > This is known behavior with how POSIXt objects are printed. See the > discussion on StackOverflow: > http://stackoverflow.com/questions/7726034/how-r-formats-posixct-with-fractional-seconds > To summarize the relevant

Re: [R] Milisecond problem in as.POSIXct ?

2015-06-10 Thread Joshua Ulrich
_PAPER=en_US.UTF-8 LC_NAME=C > [9] LC_ADDRESS=C LC_TELEPHONE=C > [11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C > > attached base packages: > [1] stats graphics grDevices utils datasets methods base > > other attached packages: > [1]

Re: [R] Unable to Scale/Display properly in plotting a xts/timeseries graph in a single plot

2015-04-07 Thread Joshua Ulrich
The sessionInfo() function does not create a plot... On Tue, Apr 7, 2015 at 12:10 PM, Raghuraman Ramachandran wrote: > Thanks Josh. I am not sure if I can attach a Jpeg. Please find attached. > > On Tue, Apr 7, 2015 at 5:47 PM, Joshua Ulrich wrote: >> On Tue, Apr 7, 2015 at 11:30

Re: [R] Unable to Scale/Display properly in plotting a xts/timeseries graph in a single plot

2015-04-07 Thread Joshua Ulrich
.org mailing list -- To UNSUBSCRIBE and more, see > 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 | about.me/joshuaulrich

[R] How to analyse nonlinear response to categorical and quantitative explanatory variables?

2015-02-19 Thread Jan-Ulrich Kreft
I use? Attached a figure showing the means of 4 replicates. Many thanks. Best wishes, Jan. --- Dr Jan-Ulrich Kreft +44 (0)121 41-48851 School of Biosciences University of Birmingham, Birmingham, B15 2TT, UK http://www.tinyurl.com/kreftlab Cells_vs_rpm_means2.pdf Description: Cells_vs_rpm_means

Re: [R] A portfolio return function?

2015-02-13 Thread Joshua Ulrich
n/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 | about.me/joshuaulrich FOSS Trading | www.fosstrading.com __

Re: [R] How to create a time series object with time only (no date)

2014-12-21 Thread Joshua Ulrich
ours either do not exist or exist twice. > ce > > > -Original Message- > From: "Joshua Ulrich" [josh.m.ulr...@gmail.com] > Date: 12/21/2014 12:53 AM > To: "ce" > CC: "R-Help" > Subject: Re: [R] How to create a time series object with

Re: [R] How to create a time series object with time only (no date)

2014-12-20 Thread Joshua Ulrich
On Dec 20, 2014 11:11 PM, "ce" wrote: > > > Dear all, > > I want to create a time series object from 00:00:00 to 23:59:00 without dates ? > I can't figure it out with xts ? > You can't create an xts object without a date in the index. If the date doesn't matter, you can just set it to 1970-01-01 (

[R] Version 1.4.0 of the 'apcluster' package

2014-12-03 Thread Ulrich Bodenhofer
y matrices. For more details, see the package documentation and the following URLs: http://www.bioinf.jku.at/software/apcluster/ http://cran.r-project.org/web/packages/apcluster/index.html Best regards, Ulrich Bodenhofer *

Re: [R] reading data using XTS package

2014-11-19 Thread Joshua Ulrich
ment of HSS, IIT KGP > KGP > > __ > 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-c

Re: [R] Newbie question: ROC function in TTR package

2014-11-16 Thread Joshua Ulrich
On Nov 16, 2014 8:10 PM, "Ernie Stokely" wrote: > > One of the great frustrations for a newbie to R is the documentation uses the same syntax in its description as the items it is trying to describe, a general no-no when giving language definitions. Why does the documentation not include the equat

Re: [R] lappy and xts get all indexes from a list ?

2014-10-31 Thread Joshua Ulrich
-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 | about.me/joshuaulrich FOSS Trading | www.fosstrad

Re: [R] Problem getting Option Quotes

2014-10-25 Thread Joshua Ulrich
changed the webpage the data are scraped from. The function will have to be re-written to scrape from the new page. > Thanks > Bob > > __ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-pro

Re: [R] new error with QuantMod getSymbols

2014-08-30 Thread Joshua Ulrich
ing sent by Yahoo Finance. -- Joshua Ulrich | about.me/joshuaulrich FOSS Trading | www.fosstrading.com On Thu, Aug 28, 2014 at 11:12 PM, Adolfo Yanes wrote: > Hello, > > I use getSymbols function daily to run some models with stock data. Today > when I tried to update the sto

[R] Version 1.3.5 of apcluster package

2014-06-29 Thread Ulrich Bodenhofer
/apcluster/index.html Best regards, Ulrich Bodenhofer *Dr. Ulrich Bodenhofer* Associate Professor Institute of Bioinformatics *Johannes Kepler University* Altenberger Str. 69 4040 Linz, Austria Tel. +43 732 2468 4526 Fax +43 732

Re: [R] Aggregating 15 minute xts sequence to hourly

2014-06-18 Thread Joshua Ulrich
ough. If you merge it with another xts object, you will have a look-ahead bias because you will know the aggregate for the time period before it has occurred. > > > __ > Costas Vorlow > http://www.linkedin.com/in/costasvorlow > http://www.vorlow.com > > ▇ ▅ █ ▅ ▇ ▂ ▃ ▁

Re: [R] Aggregating 15 minute xts sequence to hourly

2014-06-16 Thread Joshua Ulrich
ostas > > __ > > *Costas Vorlow > <http://www.gravatar.com/avatar/49a9dee59073b1ed4a36440a06aeb81b> * > *http://www.linkedin.com/in/costasvorlow > <http://www.linkedin.com/in/co

Re: [R] Collapsing data.frame to its or xts

2014-06-05 Thread Joshua Ulrich
ml > and provide commented, minimal, self-contained, reproducible code. It will be a lot easier, and therefore more likely, for others to help you if you follow the instructions in the footer. Here are some suggestions of how to create a *minimal*, reproducible example: http://stackoverflow.com/q/59

Re: [R] help with xts

2014-05-18 Thread Joshua Ulrich
;- test * pos.neg.1 Best, -- Joshua Ulrich | about.me/joshuaulrich FOSS Trading | www.fosstrading.com On Sun, May 18, 2014 at 9:25 AM, Pete wrote: > I have 3 xts objects: test, cond1, cond2 > You can download here: > > https://dl.dropboxusercontent.com/u/102669/obj.rar > >

Re: [R] ts instead of xts object

2014-03-16 Thread Joshua Ulrich
wrote: >> >> Hello, >> >> On Tue, Mar 11, 2014 at 8:45 PM, Joshua Ulrich >> wrote: >> > On Tue, Mar 11, 2014 at 12:14 AM, Bill wrote: >> >> >> >> Hello. I have a dataframe that has a date column. The intervals between >> >

Re: [R] ts instead of xts object

2014-03-11 Thread Joshua Ulrich
will work if you drop the dimensions of your single-column xts object: testt <- cpt.mean(drop(testTSRad)) > My data is below. Is there a way to convert it to ts? > Yes, as is generally the case, use the "as" method: as.ts(testTSRad) Best, -- Joshua Ulrich | about.me/joshua

[R] Version 1.3.3 of apcluster package (+ Rcpp compatibility issue)

2014-02-24 Thread Ulrich Bodenhofer
, if you upgrade Rcpp to 0.11.0, you will have to re-install apcluster - no matter which version of apcluster you are using. In this case, we advise you to upgrade apcluster to version 1.3.3 for maximum compatibility with Rcpp 0.11.0. Best regards, Ulrich

Re: [R] Merging xts List created using panel data

2014-02-04 Thread Joshua Ulrich
This is related to: http://stackoverflow.com/q/21393866/271616 http://stackoverflow.com/q/21484267/271616 -- Joshua Ulrich | about.me/joshuaulrich FOSS Trading | www.fosstrading.com On Tue, Feb 4, 2014 at 6:07 PM, Jairaj Gupta wrote: > Hi, > > I have done the following: > >

Re: [R] testing xts values in if command?

2014-01-29 Thread Joshua Ulrich
>> as.numeric(SPY["2007-01-03"]$SPY.Adjusted) > >> as.numeric(SPY["2007-01-04"]$SPY.Adjusted) > [1] FALSE > > > Is this the expected behavior ? > Yes, see: http://stackoverflow.com/q/7097437/271616 -- Joshua Ulrich | about.me/joshuaulrich FOSS Tr

Re: [R] testing if xts date exists ?

2014-01-27 Thread Joshua Ulrich
You can use the which.i argument to [.xts: > is.null(SPY["2009-01-18",which.i=TRUE]) [1] TRUE Best, -- Joshua Ulrich | about.me/joshuaulrich FOSS Trading | www.fosstrading.com On Sat, Jan 25, 2014 at 9:27 AM, ce wrote: > Dear all > > > How to test if xts date

Re: [R] xts error: number of items to replace is not a multiple of replacement length

2014-01-18 Thread Joshua Ulrich
et by column first, then row, if you insist on making two calls to the subset-replacement function. I would encourage you to use Arun's solution. It's cleaner and faster because it's only one function call and it avoids the "$" function (which is marginally slower on xts obj

Re: [R] [R-SIG-Finance] error in "ca.jo"

2013-12-24 Thread Joshua Ulrich
On Tue, Dec 24, 2013 at 3:36 PM, mamush bukana wrote: > Hi Jeff, > >From your words (if our words really describe us), I hope you don't expect > me to teach you that this is "r-help" room. I don't expect you to tell me > that I am a layman. I already know it and that is why I am here seeking a > h

Re: [R] Installing quantstrat

2013-11-26 Thread Joshua Ulrich
esume that if it > were that simple, why would the version crated a week ago not work? > I don't know; that's a question for the R-Forge maintainers. It looks like they're building with 3.0.2, but I'm not sure that matters. The easiest thing to do it just check out

Re: [R] Installing quantstrat

2013-11-26 Thread Joshua Ulrich
s 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 _

Re: [R] Merge xts and Return.portfolio

2013-11-15 Thread Joshua Ulrich
9 >> #2013-11-07 -0.004390787 -0.0188959585NA >> #2013-11-07 NANA 0.0068094113 >> #2013-11-080.0 0.0136779259NA >> #2013-11-10 NANA 0.0010398246 >> #2013-11-110.003

Re: [R] Column Name Matching in xts Objects

2013-11-14 Thread Joshua Ulrich
or > expected for xts objects? > xts doesn't have a $<- method, so $<-.zoo is dispatched. I'm not familiar with the function, but the behavior you found is explicitly defined, so that seems to suggest it was intended. >From "$<-.zoo": wi <- match(x, colnames(o

Re: [R] xts objects comparison

2013-11-14 Thread Joshua Ulrich
n common, so there's nothing to compare. Convert 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

Re: [R] package ‘build-essential’ is not available (for R version 3.0.2)

2013-11-11 Thread Joshua Ulrich
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 FO

Re: [R] cross-sectional analysis of a financial time series

2013-08-22 Thread Joshua Ulrich
(YHOO$YHOO.Return, ep, f, n=10) colMeans(y) Best, -- Joshua Ulrich | about.me/joshuaulrich FOSS Trading | www.fosstrading.com On Wed, Aug 21, 2013 at 8:36 PM, Brijesh Gulati wrote: > Hi: > > I have a financial series data. For instance, one can take YHOO from the > quantmod pa

Re: [R] help

2013-07-16 Thread Joshua Ulrich
gt; Can 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

Re: [R] error in VaR calculation

2013-06-25 Thread Joshua Ulrich
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

  1   2   3   >