In performance analytics - performance summary session , i cant run the
code of -
charts.PerformanceSummary(datafrom_table, rf = 0, main = NULL, method =
"ModifiedVaR", width = 0,event.labels = NULL, ylog = FALSE, wealth.index =
FALSE, gap = 12)
it just return blank chart.
datafrom_table - h
hi Michael,
am sorry for the incomplete reply .
csv file data havinmg like this ,
>getSymbols("IBM")
>weekly_data = to.weekly(week_name)
>dataframe=data.frame(weekly_data)
>outputfile_name="F:\\R-programs\\Outputfile.csv"
>write.table(dataframe, file =outputfile_name,sep = ",",col
v="IBM"
library(quantmod)
v
v1=getSymbols(v)
to.yearly(v1)
===
when i pass the value through a variable in to.yearly() function it shows
the error msg like
"Error in try.xts(x) :
Error in UseMethod("as.xts") : no applicable method for 'as.xts' applied
to an object
i need to find the best ticker from the group of some tickers.?
i also need to know on what basis we calculate the best ticker?
i have some idea about the if the risk rate low, or the market price
high we can say the ticker is best.
but i dont know is it true.
Anyone can help me .
T
i need o know what are the ratios used in language 'R'.
i just get the sharp, Treynor, information ratios, is ther any other ratios
used in it ?
and also please give any reference web page link too.
Thanks .
--
View this message in context:
http://r.789695.n4.nabble.com/ratios-tp4648826.html
Se
i read about the performance analytics package
i have a doubt about the TreynorRatio
i have code
g=getSymbols("IBM")
> c=Cl(g)
> r=Return.calculate(c)
> SharpeRatio.annualized(r)
IBM.Close
Annualized Sharpe Ratio (Rf=0%) 0.3566339
> TreynorRatio (ret)
Err
i used a package like 'benchamrk' is it helpful to find out the benchmak
value ?
and also colud u please provide some examples for the benchmak package , i
cant get the proper answer with that.
And also it shows the bs.sampling value also needed. but the r-help pages
provide without examples .
-
How to call a function from another r file ?
Anyone can help me .
Having a function named like fun1 which is saved in r file file1.r
and i have another r file like file2.r, and i need to call the fun1 (which
is in file1) within file2.
Thank you
--
View this message in context:
http://r.789
Thanks for the reply .I am able to call a simple function in an R file from
another by using source().
Now I am facing another issue .I am trying to call a r file named es.r which
have lotes of R functions.
These R functions are internally calling java functions by using ".jnew()"
and ".jcall()". I
Yes.I have added
#!/usr/bin/Rscript
library(rJava)
.jinit()
in the beginning of es.r
On Mon, Nov 26, 2012 at 11:14 AM, David Winsemius [via R] <
ml-node+s789695n4650807...@n4.nabble.com> wrote:
>
> On Nov 25, 2012, at 8:50 PM, sheenmaria wrote:
>
> > Thanks for the reply
I am trying to call a r file named es.r which have lotes of R functions.
These R functions are internally calling java functions by using ".jnew()"
and ".jcall()". I have added
necessary jar's to the Classpath and I am able to run es.r from command
prompt .
But when I tried to call it
I am trying to call a r file named es.r which have lotes of R functions.
These R functions are internally calling java functions by using ".jnew()"
and ".jcall()". I have added
necessary jar's to the Classpath and I am able to run es.r from command
prompt .
But when I tried to call it
I tried adding my jars to classpath using
#!/usr/bin/Rscript
library(rJava)
#.jclassPath()
.jinit()
.jaddClassPath(dir("target\\mavenLib", full.names=TRUE ))
.jclassPath()
but got
in .jnew("com/algoTree/ClientElasticSearch/ElasticSearchLoader") :
java.lang.ClassNotFoundException
then I t
13 matches
Mail list logo