IT博客汇
  • 首页
  • 精华
  • 技术
  • 设计
  • 资讯
  • 扯淡
  • 权利声明
  • 登录 注册

    xts_0.13.2 on CRAN

    R on FOSS Trading发表于 2024-01-22 17:41:00
    love 0
    [This article was first published on R on FOSS Trading, and kindly contributed to R-bloggers]. (You can report issue about the content on this page here)
    Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.

    An updated version of xts is now on CRAN. The most notable change is that plot.xts() now supports a log scale y-axis. This involved a significant refactor of the plot.xts() internals, so it’s possible to have introduced some bugs.

    Features

    • Add ability to log scale the y-axis in plot.xts(). (#103)

    • Significantly refactor the internals of plot.xts(). This made it a lot easier to add the y-axis log scale. (#408)

    Enhancements

    • Print a message when period.apply() is called with FUN = mean because it calculates the mean for each column, not all the data in the subset like it does for all other functions. The message says to use FUN = colMeans for current behavior and FUN = function(x) mean(x) to calculate the mean for all the data. This information is also included in the help files. The option xts.message.period.apply.mean = FALSE suppresses the message. (#124)

    • Actually change the underlying index values when ’tclass’ is changed from a class with a timezone (e.g. POSIXct) to one without a timezone (e.g. Date). Add a warning when this happens, with a global option to always suppress the warning. Thanks to Daniel Palomar for the report and suggestion! (#311)

    Bug Fixes

    • Fix error when print.xts() is called ‘quote’ or ‘right’ arguments. Thanks to Willem Maetens for the report and patch! (#401)

    • Fix addPolygon() so it renders when observation.based = TRUE. (#403)

    • Print trailing zeros for index value with fractional seconds, so every index value has the same number of characters. (#404)

    I look forward to your questions and feedback! If you have a question, please ask on Stack Overflow and use the [r] and [xts] tags. Or you can send an email to the R-SIG-Finance mailing list (you must subscribe to post). Open an issue on GitHub if you find a bug or want to request a feature. Please read the contributing guide first! It will help save time for both of us. 😉

    To leave a comment for the author, please follow the link and comment on their blog: R on FOSS Trading.

    R-bloggers.com offers daily e-mail updates about R news and tutorials about learning R and many other topics. Click here if you're looking to post or find an R/data-science job.
    Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.
    Continue reading: xts_0.13.2 on CRAN


沪ICP备19023445号-2号
友情链接