Displaying 20 results from an estimated 2000 matches similar to: "simple parsing question?"
2008 Sep 09
2
yahoo finance into R
Hi R,
I am familiar with the basics of R.
To learn more I would like how to get data from Yahoo!finance directly into
R. So basically I want a data frame or matrix to do some data analysis.
How do I do this?
Thank you very much.
Thomas
--
View this message in context: http://www.nabble.com/yahoo-finance-into-R-tp19385481p19385481.html
Sent from the R help mailing list archive at Nabble.com.
2018 Jan 07
1
help needed on quantmod....
dear members,
I am using quantmod to work with stock prices...
I am trying to append the data got from getQuote to the one got by getSymbols. The function is named "apnd". The code is as follows:
function(x){
if ((class(x) == "xts") || (class(x) == "zoo")){
sym <- deparse(substitute(x))
2017 Sep 06
1
Using quantmod to obtain current Dow Jones index
R 3.4.1
OS X
Colleagues,
I am just learning to use the quantmod package and I have encountered something that I don?t understand.
This works:
getSymbols("^DJI")
This does not work:
getQuote("^DJI?)
It returns only NAs:
Trade Time Last Change % Change Open High Low Volume
^DJI <NA> N/A N/A N/A N/A N/A N/A N/A
Two questions:
1. Is there some way to obtain the
2011 Oct 20
4
quantmod package
i am new to the quantmod package . so if the answer is trivial please excuse
me. i want to study stock values within a day. i get current stock updates
using getQuotes and then want to produce usual quantmod graphs with that
values. also the graph should be able of adding technical indicators. please
help. in addition it will be helpful if anyone suggests how to run that code
continuously to get
2013 May 16
1
To List or Not To List
Dear R Helpers,
A few weeks ago I asked for some help on how to accomplish modifications
to data in a set of data frames. As part of that request I mentioned that
I realized that one way to accomplish my goal was to put the data frames
together in a list but that I was looking for a way to do it with data
frames and a loop because I "believe the better thing is to work df by df
for my
2009 Feb 09
3
pause in function execution
I would like to have a function which gets data, does a calculation
and prints a result and then waits some number of seconds and
repeats. If I use Sys.sleep, the execution is pausing but the
function output is buffered so that it all comes out when the function
terminates. How can I get output while the function continues to
execute?
2009 Feb 07
1
Yahoo data downloading problem
Hi,
I got some problems while was trying to download data from Yahoo using
yahoo.get.hist.quote() function. My script is as follows :
app <- yahoo.get.hist.quote("aapl", start="02/07/09", end="02/07/06",
quote="close")
However I got following error :
trying URL
2018 Mar 15
1
Adjusting OHCL data via quantmod
Hello,
I'm trying to do two things:
-1. Ensure that I understand how quantmod adjust's OHLC data
-2. Determine how I ought to adjust my data.
My overarching-goal is to adjust my OHLC data appropriately to minimize the
difference between my backtest returns, and the returns I would get if I
was trading for real (which I'll be doing shortly).
Background:
-1. I'm using Alpha
2011 Nov 03
3
Extract Data from Yahoo Finance
Hi R ?users,
?
I am using R-2.14.0 on Windows XP.
?
May I request you to assist me for the following please.
?
I like to extract all the fields (example: a : Ask, b : Bid, ??, w : 52-week Range, x: Stock Exchange) ?for certain period of time, say, 1 October 2011 to 31 October 2011.
?
Is there any R-Package(s) & any R- script please?
?
Once again, thank you very much for the time you have
2010 Sep 10
2
[xts, quantmod] segfault probelm when I work with memcpy function
Hi,
I work with SEXP C code and with xts and quantmod packages. I try to
touch how xts internal works.
So we have R session and:
> ls()
character(0)
> getSymbols('AAPL') # quantmod package
[1] "AAPL"
> ls()
[1] "AAPL"
> str(AAPL)
An ?xts? object from 2007-01-03 to 2010-09-09 containing:
Data: num [1:929, 1:6] 86.3 84 85.8 86 86.5 ...
- attr(*,
2012 Mar 04
1
quantmod getOptionChain Not Work
Dear R Helpers,
I am still having trouble with the getOptionChain command in quantmod. I
have the latest version of quantmod, etc. so I was under the impression
that the problem was solved with updates to the package.
If someone could let me know what I need to install in order to make this
work, I would really appreciate it.
My error message as session info are shown below. Thanks a bunch.
2017 Sep 01
3
How to use getSymbols() to get annual data
Dear Sir/Madam,
How to use getSymbols() to get annual data? For example, I need the annual stock price of APPLE from the year 2000 to 2016. How to write the command? I only know how to get the daily data. It is:
getSymbols("AAPL",from="2000-01-01",to="2016-12-31")
Thank you very much.
Have a good week!
Best regards,
Yingrui Liu
[[alternative HTML
2009 Feb 05
4
eval and as.name
I'm sure there is a more general way to ask this question but how do
you use the elements of a character vector as names of objects in an
expression?
For example, say you have:
a = c(1,3,5,7)
b = c(2,4,6,8)
n=c("a","b")
and you want to use the names a and b in a function (e.g. sum)
sum(eval(as.name(n[1])),eval(as.name(n[2])))
works but
what is a simpler way to
2010 Nov 21
1
abline(h=whatever) not working in candleChart() (in quantmod)?
Hello, all--
I am having some fun playing with the graphing in quantmod-- very nice! I am
writing a function to calculate (and hopefully plot) support and resistance
lines, but the usual plot call of "abline(h=value)" does not seem to work.
Here's my code:
require(quantmod)
AAPL<-getYahooData("AAPL")
candleChart(AAPL,subset="last 3
2018 Feb 20
0
getQuote in quantmod malfunctioning
dear members,
I have a list of stocks by name snlcq2:
snlcq2 <- c("ICICIBANK.NS" "IBULHSGFIN.NS" "INDUSINDBK.NS" "INFY.NS" "KOTAKBANK.NS" "LTI.NS" "LT.NS" "LUPIN.NS" "M&M.NS" "M&MFIN.NS" "NTPC.NS" "ONGC.NS"
2011 Oct 18
1
problem with quantmod package
i am using quantmod package.it get stock quotes from google finanace. but
unfortunately i am not able to get the quotations of some stocks(e.g.
NSE:TCS,NSE:SAIL ) through the "getSymbol" command of this package although
they are available in the google finance website. anyone please help me.
thanks in advance.....
--
View this message in context:
2018 Mar 05
2
Interpret List Label as Date from Quantmod getOptionChain
Hi Dirk,
Thanks for your note.
I understand that expiry dates are the dates that the option expires, so I don't think that I am confused about that (although the upper limits of one's confusion is difficult to accurately estimate).
My lack of clarity come from treating those "dates" as actual dates as opposed to strings, which one could reasonably interpret them to be from
2017 Aug 02
1
Looping Through QuantMod Objects
Dear R Helpers,
I have run into a problem trying to perform a number of actions on a set
of quantmod data objects through a loop and I am hoping that this is an
easy problem for someone else as opposed to very difficult for me.
The example task is to get the first three objects of the quarterly
balance sheet for a number of companies from the getFinancials object and
put them together into a
2009 Jun 15
2
GARCH:: False Convergence
Dear R users,
I am trying to use tseries' garch function in order to determine the
volatility of a return series generated by quantmod. Here is the code that I
am using:
> library(quantmod)
> getSymbols("AAPL")
convert daily closing prices into continuous log returns
> dret<-dailyReturn(AAPL,type='log')
check to see that the autocorrelations decay
>
2013 Apr 13
0
help on smoothing volatility surface..
This script below pulls yahoo data via a function in quantmod, then
massages the data around to forumalate a 3D graph with RGL library,
attached is a ggplot to show the data i'm trying to create a surface with
in separate line geoms . the issue is that the 3D graph looks very ugly and
cut up because of the limited quantities of points on the front month
expirations.. can anyone tell me whats