Re: [R] even display of unevenly spaced numbers on x/y coordinates

2018-07-14 Thread Bogdan Tanasa
Dear Jeff, thank you for your prompt reply and kind help. During our previous conversation, we worked on a different topic, namely subsetting the dataframe before using ecdf() function in ggplot2. Now, i would like to know, how I could evenly space on the x axis the values (0, 0.01, 0.1, 1,

Re: [R] even display of unevenly spaced numbers on x/y coordinates

2018-07-14 Thread Jeff Newmiller
Isn't this what I showed you how to do in [1]? [1] https://stat.ethz.ch/pipermail/r-help/2018-July/455215.html On July 14, 2018 10:16:36 PM PDT, Bogdan Tanasa wrote: >Dear all, > >please would you advise on how I could make an even display of unevenly >spaced number on a graph in R. For

Re: [R] get "massdist" in R

2018-07-14 Thread Jeff Newmiller
Roll back your version of R, or find another way to accomplish that calculation. This "abuse" of undocumented functions inside base R has been warned against for a long time [1], so the real puzzle is how you managed to get this far. [1]

[R] even display of unevenly spaced numbers on x/y coordinates

2018-07-14 Thread Bogdan Tanasa
Dear all, please would you advise on how I could make an even display of unevenly spaced number on a graph in R. For example, considering the code below : BREAKS = c(0, 0.1, 1, 10, 20, 30, 40, 50, 60, 70, 80, 90, 100, 200, 300, 400, 500) a <- seq(0,100,0.1) b <- seq(0,1000,0.1) plot(ecdf(a),

[R] get "massdist" in R

2018-07-14 Thread Julianony M
I encounter a problem when I ran an R script that's been working for years: > Rscript kernel_density_script it complains: "massdist" not available for .C() for package "stats" I thought an update of R could help, so I did: > sudo yum update R ... it says: No packages marked for update Could

Re: [R] No transactions/positions to chart in Quantstrat

2018-07-14 Thread David Winsemius
> On Jul 14, 2018, at 10:41 AM, Pietro Fabbro via R-help > wrote: > > Hello. > I get the error message that there are no transactions/positions to chart > despite the signals and rules that I inserted. This might or might not be on-topic for Rhelp. If there is a particular form for a

[R] No transactions/positions to chart in Quantstrat

2018-07-14 Thread Pietro Fabbro via R-help
Hello. I get the error message that there are no transactions/positions to chart despite the signals and rules that I inserted. Can someone please help? rm(list = ls(.blotter), envir = .blotter) initdate <- "2010-01-01" from <- "2012-01-01" #start of backtest to <- "2017-31-12" #end of backtest

Re: [R] Quantstrat custom indicator colnames error

2018-07-14 Thread Jeff Newmiller
Thank you for for reposting a readable question, though the origin of quantstrat and IKTrading on github still took some study, and I cannot see where mktdata was supposed to come from. If you get no expert response here, you might get a more appropriate set of users if you ask this question

Re: [R] Error custom indicator Quantstrat colnames

2018-07-14 Thread Ted Harding
Pietro, Please post this to r-help@r-project.org not to r-help-ow...@r-project.org which is a mailing liat concerned with list management, and does not deal with questions regarding the use of R. Best wishes, Ted. On Sat, 2018-07-14 at 13:04 +, Pietro Fabbro via R-help wrote: > I will try to

[R] Quantstrat custom indicator colnames error

2018-07-14 Thread Pietro Fabbro via R-help
I apologize if the data I will insert will not be enough. So, I am trying to run a strategy through the package Quantstrat. install.packages("quantstrat") My problem is that I get the following error Error incolnames<-(tmp, value = seq(ncol(tmp_val))) : attempt to set 'colnames' on an object

[R] Error custom indicator Quantstrat colnames

2018-07-14 Thread Pietro Fabbro via R-help
I will try to be as clear as possible as I have been rebuked by some users. I deleted the last questions and I will try to be sufficiently explicative in this one. I apologize if the data I will insert will not be enough. So, I am trying to run a strategy through the package Quantstrat.

Re: [R] Custom Indicator Quantstrat Problem

2018-07-14 Thread Jeff Newmiller
This mailing list is plain text only (read the Posting Guide). When you send HTML-formatted email, what we see is often not what you saw. The solution is for you to figure out how to send your email in plain text format to begin with. Since the syntax in your code below is not valid, I am

[R] Custom Indicator Quantstrat Problem

2018-07-14 Thread P95 F95 via R-help
Hi. I am new in the forum and in R, I would like to ask for help. I am trying to add a custom indicator in quantstrat for my trading strategy but something does not work. When I insert the command: #out <- applyStrategy(strategy=strategy.st ,portfolios=portfolio.st

Re: [R] optim function

2018-07-14 Thread J C Nash
Subject: Re: [R] optim function Date: Fri, 13 Jul 2018 17:06:56 -0400 From: J C Nash To: Federico Becerra Though I wrote the original codes for 3 of the 5 solvers in optim(), I now suggest using more recent ones, some of which I have packaged. optimx on R-forge (not the one on CRAN yet) has

Re: [R] Help with replace()

2018-07-14 Thread Uwe Ligges
On 12.07.2018 18:09, Bill Poling wrote: Yes, that's got it! (20 years from now I'll have it all figured out UGH!), lol! Using R for 20 years myself now I can only tell that it takes much longer. Best, Uwe Ligges Thank you David Min. 1st Qu. Median Mean 3rd Qu.