EVOLUTION-MANAGER
Edit File: getSymbols.yahooj.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title>R: Download OHLC Data From Yahoo! Japan Finance</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <link rel="stylesheet" type="text/css" href="R.css" /> </head><body> <table width="100%" summary="page for getSymbols.yahooj {quantmod}"><tr><td>getSymbols.yahooj {quantmod}</td><td style="text-align: right;">R Documentation</td></tr></table> <h2> Download OHLC Data From Yahoo! Japan Finance </h2> <h3>Description</h3> <p>Downloads <code>Symbols</code> to specified <code>env</code> from ‘finance.yahoo.co.jp’. This method is not to be called directly, instead a call to <code>getSymbols(Symbols,src='yahooj')</code> will in turn call this method. It is documented for the sole purpose of highlighting the arguments accepted, and to serve as a guide to creating additional getSymbols ‘methods’. </p> <h3>Usage</h3> <pre> getSymbols.yahooj(Symbols, env, return.class = 'xts', index.class = 'Date', from = "2007-01-01", to = Sys.Date(), ...) </pre> <h3>Arguments</h3> <table summary="R argblock"> <tr valign="top"><td><code>Symbols</code></td> <td> <p> a character vector specifying the names of each symbol to be loaded</p> </td></tr> <tr valign="top"><td><code>env</code></td> <td> <p> where to create objects. (.GlobalEnv) </p> </td></tr> <tr valign="top"><td><code>return.class</code></td> <td> <p> class of returned object </p> </td></tr> <tr valign="top"><td><code>index.class</code></td> <td> <p> class of returned object index (xts only) </p> </td></tr> <tr valign="top"><td><code>from</code></td> <td> <p> Retrieve data no earlier than this date. (2007-01-01)</p> </td></tr> <tr valign="top"><td><code>to</code></td> <td> <p> Retrieve data through this date (Sys.Date())</p> </td></tr> <tr valign="top"><td><code>...</code></td> <td> <p> additional parameters </p> </td></tr> </table> <h3>Details</h3> <p>Meant to be called internally by <code>getSymbols</code> (see also). </p> <p>One of the few currently defined methods for loading data for use with <span class="pkg">quantmod</span>. Essentially a simple wrapper to the underlying Yahoo! Japan finance site's historical data download. </p> <p>The string ‘YJ’ will be prepended to the <code>Symbols</code> because Japanese ticker symbols usually start with a number and it is cumbersome to use variable names that start with a number in the R environment. </p> <p>It is recommended to prepend the ticker symbols with ‘YJ’ yourself if you use <code>setSymbolLookup</code>. That will make it possible for the main <code>getSymbols</code> function to find the symbols in the lookup table. </p> <h3>Value</h3> <p>A call to getSymbols.yahooj will load into the specified environment one object for each <code>Symbol</code> specified, with class defined by <code>return.class</code>. Presently this may be <code>ts</code>, <code>zoo</code>, <code>xts</code>, or <code>timeSeries</code>. </p> <p>In the case of xts objects, the indexing will be by Date. This can be altered with the <code>index.class</code> argument. See <code>indexClass</code> for more information on changing index classes. </p> <h3>Author(s)</h3> <p> Wouter Thielen </p> <h3>References</h3> <p> Yahoo! Japan Finance: <a href="https://finance.yahoo.co.jp">https://finance.yahoo.co.jp</a> </p> <h3>See Also</h3> <p><code><a href="getSymbols.html">getSymbols</a></code>, <code><a href="setSymbolLookup.html">setSymbolLookup</a></code> </p> <h3>Examples</h3> <pre> ## Not run: # All 4 getSymbols calls return the same # Sony (6758.T) OHLC to the global environment # The last example is what NOT to do! ## Method #1 getSymbols('6758.T',src='yahooj') ## Method #2 getSymbols('YJ6758.T',src='yahooj') ## Method #3 setDefaults(getSymbols,src='yahooj') # OR setSymbolLookup(YJ6758.T='yahooj') getSymbols('YJ6758.T') ######################################### ## NOT RECOMMENDED!!! ######################################### ## Method #4 getSymbols.yahooj('6758.T',env=globalenv()) ## End(Not run) </pre> <hr /><div style="text-align: center;">[Package <em>quantmod</em> version 0.4.20 <a href="00Index.html">Index</a>]</div> </body></html>