Displaying 3 results from an estimated 3 matches for "xle".
Did you mean:
le
2011 Dec 02
2
order function give back row name
Hello,
I have a matrix results with dimension 1x9 double matrix
XLB XLE XLF XLI
1 53.3089 55.77923 37.64458 83.08646
I'm trying to order this matrix
> print(order(results))
[1] 3 1 2 4
how can the function order return the columnname XLF XLB XLE XLI instead of 3 1 2 4
any idea ?
Thank you in advance
--
2012 Dec 06
1
Fuction Error
...;^' in "head(^"
Again it is a problem.
Back to the real problem here is the code below. How do I get around the
error that results from the "^"?
rm(list = ls(all = TRUE)) # use this to clear data
library(quantmod)
library(PerformanceAnalytics)
symbols <-
c('XLE','XLV','XLI','XLU','XLP','IYZ','XLK','XLY','XLF','XLB','GLD','SLV','E
FA','EEM','FXA','FXE','FXY','HYG','LQD', '^GSPC')
getSymbols(symbols,fr...
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
>