Displaying 20 results from an estimated 2000 matches similar to: "find the Best-ticker"
2012 Nov 24
3
function call from another r file
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.789695.n4.nabble.com/function-call-from-another-r-file-tp4650627.html
Sent from the R help mailing list
2006 Nov 22
1
RBloomberg Multi-ticker problem
Hi,
I am trying to download data from Bloomberg through R. If I try to
download intraday data for multiple tickers and only one field, I get
the error, written below in red. How do I get rid of this error?
> dat<-blpGetData(conn, c("NOK1V FH Equity","AUA AV Equity"),
"LAST_PRICE",
2011 Dec 07
1
scatterplotting stock returns using quantmod and pairs()
I want to get data for a set of ticker symbols and compute the daily return of the adjusted close using quantmod, and then scatterplot returns using pairs().
The following gets data for the list of tickers:
tickers <- c("SHY","TLT","SPY","IWM","GLD","IEV","ILF","EWJ","EPP","SAF","ASA")
2012 Nov 09
2
TreynorRatio
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)
Error in inherits(x, "xts") : argument "Rb" is missing, with
2011 Jan 19
1
Problem in using bdh function for Govt tickers
Hi, all
I wanted to fetch data from Bloomberg for govt bonds, and analyse it
further.
I am having trouble in getting data as when I use field=PX_LAST, it is
giving the prices but when I use field=CPN, or ISSUE_DT, it is not giving
the results and just bouncing back <NA> for that.
This is the piece of code:
> library(rJava)
Warning message:
package 'rJava' was built
2011 Mar 12
3
pass character vector in instrument field of get.hist.quote function
I am new to R so I apologize if my question is trivial. I have not been able
to figure out whether what I want to do is even possible.
I have a data frame of stock ticker symbols which I store into R space from
a txt file as follows:
tickers <- read.csv("stocks.txt", header=FALSE, sep=",")
tickers <- tickers[1] / the tickers are stored in the first column
>
2008 Sep 05
1
casting help please
I have a data.frame which I believe is melted already and am having
trouble casting it to 'wide' format.
It looks something like
> (x <- data.frame(ticker=c(rep("A",5),rep("B",6)), date=c(1:5, 1:6),
value=c(NA,100*exp(rnorm(10,0,.1)))))
> cast(x, date ~ ticker) # this does what I want with toy data
But when I use my real data frame
>
2009 Feb 03
1
Automatic creation of columns in zoo object
Hello, everyone
I have a question.
Assume I have the following zoo object:
me.la <- structure(c(1524.75, 1554.5, 1532.25, 1587.5, 1575.25, 1535.5,
1550, 1493.5, 1492.5, 1472.25, 1457.5, 1442.75, 1399, 1535.75,
1565.25, 1543.5, 1598.5, 1586.5, 1547, 1561.5, 1504.75, 1503.75,
1483.75, 1468.75, 1453.75, 1410, 1546.75, 1575.25, 1554, 1609,
1597.5, 1558.5, 1573, 1516.25, 1515.5, 1495, 1480, 1465,
2012 Oct 19
1
to.yearly()
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 of class "character""
i need the result of OHLC
2009 Jun 25
1
apply on xts
Hi,
I do not understand why after I called apply on a function that returns an
xts (getIdvAdjSeries) it returns a matrix whose columns are just numeric
value of time series in xts instead of a list of xts objects.
Basically, I called the following:
apply(matrix(tickers,ncol=1),1,FUN=getDivAdjSeries)
getDivAdjSeries <- function(ticker) {
seriesName <-
2012 Jul 07
1
Getting objects from quantmod ticker list
Hi all,
I would need to put datas downloaded with quantmod into a matrix or a data
frame.
Suppose to start from here:
*require(quantmod)
ticker.list <- c('AAA', 'ALTSALES', 'AMBNS', 'AMBSL', 'BAA', 'EMRATIO',
'FEDFUNDS', 'GASPRICE', 'GS1', 'GS10', 'GS20', 'LNS14100000', 'MORTG',
2007 Sep 14
1
ISIN numbers into Bloomberg tickers
Hi R,
Can I convert ISIN numbers into Bloomberg tickers in the RBloomberg
package?
BR, Shubha
[[alternative HTML version deleted]]
2000 Jul 07
1
reorganizing a data frame
Hi,
I have what I think is an easy question.
I have a data frame, called stockdata, of stock prices that looks like this:
date ticker close
1 01/02/1998 GE 24.667
2 01/05/1998 GE 25.104
3 01/06/1998 GE 24.771
4 01/07/1998 GE 24.979
5 01/08/1998 GE 24.750
6 01/02/1998 HIT 71.125
7 01/05/1998 HIT 72.313
2007 Sep 18
0
FW: ISIN numbers into Bloomberg tickers
Hi David,
I tried the following and get the below error messages....
con =
blpConnect(show.days="trading",na.action="previous.days",periodicity="da
ily")# connecting Bloomberg
> dat <- blpGetData(con,"US4009703799
Equity","PX_LAST",start=as.chron(as.Date("01/01/2005",
2009 Oct 13
5
timekeeping on VMware guests
Howdy,
I am having time-drift issues on my CentOS VM. I had referred to
following documentation:
http://wiki.centos.org/TipsAndTricks/VMWare_Server , however it didn't
help. I used kickstart for creating this VM and I am listing important
steps in ref to timekeeping issue. Any comments or suggestion would be
appreciated.
-
CS.
-------------------
# For EL5 virtual machines, Append the
2012 Oct 11
1
performance analytics- package
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 - having a csv file.
and the rest of the things are get from the site
2012 Nov 08
1
ratios
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
Sent from the R help mailing list archive at Nabble.com.
2001 Oct 04
0
ANNOUNCE: ticker (peeper)
--lrZ03NoBR/3+SXJZ
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
----- Forwarded message from Collin Starkweather <collin.starkweather@color=
ado.edu> -----
--=20
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Collin Starkweather http://www.collinstarkweather.com
Consulting Software
2011 Sep 19
2
text matching
Hi All,
I have a character vector by name tickers
> head(tickers,10)
V1
1 ADARSHPL.BO
2 AGR.V
3 AGU
4 AGU.TO
5 AIMCO.BO
6 ALUFLUOR.BO
7 AMZ.V
8 AVD
9 ANILPROD.BO
10 ARIES.BO
I would like to extract all elements that has ".BO" in it. I tried
> grep("\.BO",tickers)
Error: '\.' is an unrecognized
2011 Feb 23
3
Using string to call/manipulate an object
I am using getSymbols function from quantmod package to get price data from
internet.
Currently I have:
my.ticker <- "IBM"
getSymbols(my.ticker,src="google")
This creates an xts object named my.ticker which contains historical price
data for IBM.
How can I call and manipulating this xts object using my original string
my.ticker?
I want to do:
colnames(my.ticker) <-