[R-SIG-Finance] Weird behavior of getSymbols for symbol PLL and PL

2015-03-15 Thread Andreas Voellenklee
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.

Re: [R-SIG-Finance] Weird behavior of getSymbols for symbol PLL and PL

2015-03-15 Thread G See
Not reproducible for me.  I've got an older version of R and a newer
version of quantmod

$ R --vanilla -q
 suppressMessages(library(quantmod))
 options(getSymbols.warning4.0=FALSE)
 getSymbols(c(PLL, PL))
[1] PLL PL
 head(PLL)
   PLL.Open PLL.High PLL.Low PLL.Close PLL.Volume PLL.Adjusted
2007-01-0335.0835.19   34.53 34.89 66810030.77
2007-01-0434.6934.74   34.32 34.69 52150030.60
2007-01-0534.0034.25   33.61 33.75117160029.77
2007-01-0833.7233.74   33.23 33.71 65670029.73
2007-01-0933.9034.27   33.67 34.21 76500030.17
2007-01-1034.0034.15   33.77 34.07 70800030.05
 tail(PLL)
   PLL.Open PLL.High PLL.Low PLL.Close PLL.Volume PLL.Adjusted
2015-03-06   101.18   101.85   99.90100.17 510200   100.17
2015-03-09   100.10   100.42  100.00100.22 441700   100.22
2015-03-1098.7999.67   98.25 98.25 52960098.25
2015-03-1198.2598.37   97.54 97.91 44570097.91
2015-03-1298.5299.75   98.40 99.55 43860099.55
2015-03-1399.4599.79   98.54 99.61 43730099.61
 head(PL)
   PL.Open PL.High PL.Low PL.Close PL.Volume PL.Adjusted
2007-01-03   47.79   48.56  47.5047.95380100   39.01
2007-01-04   47.93   48.30  47.8248.00370300   39.05
2007-01-05   48.25   50.45  48.2550.35   1108300   40.96
2007-01-08   50.17   50.45  49.6249.76656300   40.48
2007-01-09   49.74   49.74  49.2349.61473200   40.36
2007-01-10   49.48   50.06  49.4349.67467100   40.41
 tail(PL)
   PL.Open PL.High PL.Low PL.Close PL.Volume PL.Adjusted
2015-01-23   69.94   69.96  69.9469.95   500   69.95
2015-01-26   69.95   69.95  69.9469.95630900   69.95
2015-01-27   69.95   69.98  69.9569.96643800   69.96
2015-01-28   69.98   69.98  69.9569.95975200   69.95
2015-01-29   69.98   69.98  69.9669.96915500   69.96
2015-01-30   69.99   70.01  69.9569.95   9516700   69.95

 sessionInfo()
R version 3.1.2 (2014-10-31)
Platform: x86_64-apple-darwin13.4.0 (64-bit)

locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8

attached base packages:
[1] stats graphics  grDevices utils datasets  methods   base

other attached packages:
[1] quantmod_0.4-3 TTR_0.22-0 xts_0.9-7  zoo_1.7-11

loaded via a namespace (and not attached):
[1] grid_3.1.2  lattice_0.20-29

Garrett

___
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.