Hi,
I am getting strange results when using getSymbols for the symbols "PLL"
and "PL". The prices are all over the place. See the output below. Can
anybody reproduce this?
Thanks,
Andreas
voellenk@nucd:~$ R --vanilla
R version 3.1.3 (2015-03-09) -- "Smooth Sidewalk"
Copyright (C) 2015 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)
R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.
Natural language support but running in an English locale
R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.
Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.
> library(quantmod)
Loading required package: Defaults
Loading required package: xts
Loading required package: zoo
Attaching package: ‘zoo’
The following objects are masked from ‘package:base’:
as.Date, as.Date.numeric
Loading required package: TTR
Version 0.4-0 included new data defaults. See ?getSymbols.
> getSymbols("PLL")
As of 0.4-0, ‘getSymbols’ uses env=parent.frame() and
auto.assign=TRUE by default.
This behavior will be phased out in 0.5-0 when the call will
default to use auto.assign=FALSE. getOption("getSymbols.env") and
getOptions("getSymbols.auto.assign") are now checked for alternate defaults
This message is shown once per session and may be disabled by setting
options("getSymbols.warning4.0"=FALSE). See ?getSymbol for more details
[1] "PLL"
> head(PLL)
PLL.Open PLL.High PLL.Low PLL.Close PLL.Volume PLL.Adjusted
2007-01-0263.9065.81 63.90 63.90 028.21
2007-01-0335.0835.19 34.53 34.89 65200015.40
2007-01-0434.6934.74 34.32 34.69 50480015.32
2007-01-0534.0034.25 33.61 33.75113500014.90
2007-01-0833.7233.74 33.23 33.71 57880014.88
2007-01-0933.9034.27 33.67 34.21 74340015.10
> tail(PLL)
PLL.Open PLL.High PLL.Low PLL.Close PLL.Volume PLL.Adjusted
2015-03-06 1446.86 1446.86 1446.86 1446.86 0 1446.86
2015-03-09 1446.86 1446.86 1446.86 1446.86 0 1446.86
2015-03-10 1446.86 1446.86 1446.86 1446.86 0 1446.86
2015-03-11 1446.86 1446.86 1446.86 1446.86 0 1446.86
2015-03-12 1446.86 1446.86 1446.86 1446.86 0 1446.86
2015-03-13 1446.86 1446.86 1446.86 1446.86 0 1446.86
> getSymbols(PL)
Error in force(Symbols) : object 'PL' not found
> getSymbols("PL")
[1] "PL"
> chartSeries(PL)
> head(PL)
PL.Open PL.High PL.Low PL.Close PL.Volume PL.Adjusted
2007-01-012.822.82 2.82 2.82 02.11
2007-01-022.822.82 2.82 2.82 02.11
2007-01-03 47.79 48.56 47.5047.95379100 35.86
2007-01-04 47.93 48.30 47.8248.00356300 35.90
2007-01-05 48.25 50.45 48.2550.35 1092100 37.66
2007-01-08 50.17 50.45 49.6249.76647400 37.22
> tail(PL)
PL.Open PL.High PL.Low PL.Close PL.Volume PL.Adjusted
2015-02-234.704.70 4.34 4.34 73986004.34
2015-02-244.444.44 4.34 4.34 24954004.34
2015-02-254.344.38 4.28 4.30 10651004.30
2015-02-264.284.30 4.26 4.286185004.28
2015-02-274.284.32 4.26 4.288683004.28
2015-03-024.284.38 4.28 4.385362004.38
> sessionInfo()
R version 3.1.3 (2015-03-09)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 14.04.2 LTS
locale:
[1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C
[3] LC_TIME=de_DE.UTF-8LC_COLLATE=en_US.UTF-8
[5] LC_MONETARY=de_DE.UTF-8LC_MESSAGES=en_US.UTF-8
[7] LC_PAPER=de_DE.UTF-8 LC_NAME=C
[9] LC_ADDRESS=C LC_TELEPHONE=C
[11] LC_MEASUREMENT=de_DE.UTF-8 LC_IDENTIFICATION=C
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] quantmod_0.4-1 TTR_0.22-0.1 xts_0.9-7 zoo_1.7-11
Defaults_1.1-1
loaded via a namespace (and not attached):
[1] grid_3.1.3 lattice_0.20-30
[[alternative HTML version deleted]]
___
R-SIG-Finance@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-sig-finance
-- Subscriber-posting only. If you want to post, subscribe first.
-- Also note that this is not the r-help list where general R questions should
go.