December 2019

Data is present: Workshops and datathons

December 31, 2019 | R on Pablo Bernabeu

Enhanced data presentation using reproducible documents and dashboards Calendar Date Title Event and location Registration 26 Nov 2020 Mixed-effects models in R, and a new tool for data simulation New Tricks Seminars, Dept. Psychology, Lancaster University [online] 8 Oct 2020 Reproducibilidad en torno a una aplicación web Reprohack en español, LatinR Conference 2020 [... [Read more...]

Boss of all plots – Box plots

December 31, 2019 | Prakruti Shah

I totally love boxplots, so much so that I may be even guilty of overusing it sometimes (if there is such a thing). Using just averages or percentile values is simplistic but they take away so much in terms of information. Histograms or Density plots work fine for showing individual ...
[Read more...]

Predicting the next decade in the stock market

December 31, 2019 | Data-based investor

Making accurate predictions using the vast amount of data produced by the stock markets and the economy itself is difficult. In this post we will examine the performance of five different machine learning models and predict the future ten-year returns for the S&P 500 using state of the art libraries ...
[Read more...]

von Bertalanffy Growth Plots I

December 31, 2019 | fishR Blog

Introduction library(FSAdata) # for data library(FSA) # for vbFuns(), vbStarts(), confint.bootCase() library(car) # for Boot() library(dplyr) # for filter(), mutate() library(ggplot2)I am continuing to learn ggplot2 for elegant graphics. I often make a plot to illustrate the fit of a von Bertalanffy growth function to data. In ... [Read more...]

Advent of Code, the second half

December 30, 2019 | r-bloggers on mpjdem.xyz

So Advent of Code 2019 ended last week, and I got all 50 stars. The challenges became considerably more challenging compared to the first half, but base R did allow acceptably efficient solutions in almost all cases. My code is still on GitHub - here’s what I learned about R by ... [Read more...]

RStudio Blogs 2019

December 30, 2019 | R Views

If you are lucky enough to have some extra time for discretionary reading during the holiday season, you may find it interesting (and rewarding) to sample some of the nearly two hundred posts written across the various RStudio blogs. R Views R Views, our blog devoted to the R Community ... [Read more...]

Introduction to Data Science in R, Free for 3 days

December 30, 2019 | John Mount

To celebrate the new year and the recent release of Practical Data Science with R 2nd Edition, we are offering a free coupon for our video course “Introduction to Data Science.” The following URL and code should get you permanent free access to the video course, if used between now ... [Read more...]

mapply and Map in R

December 29, 2019 | Andrew Treadway

An older post on this blog talked about several alternative base apply functions. This post will talk about how to apply a function across multiple vectors or lists with Map and mapply in R. These functions are generalizations of sapply and lapply, which allow you to more easily loop over ...
[Read more...]

Data types in R

December 29, 2019 | R on Stats and R

What data types exist in R? Numeric Integer Character Factor Logical This article presents the different data types in R. To learn about the different variable types from a statistical point of view, read “Variable types and examples”. What da...
[Read more...]

Data types in R

December 29, 2019 | R on Stats and R

What data types exist in R? Numeric Integer Character Logical This article presents the different data types in R. To learn about the different variable types from a statistical point of view, read “Variable types and examples”. What data types exist in R? There are five data types in R: ... [Read more...]

Can Genealogical data be tidy?

December 29, 2019 | Jamie Lendrum

Happy families are all alike; every unhappy family is unhappy in its own way — Leo Tolstoy Like families, tidy datasets are all alike but every messy dataset is messy in its own way — Hadley Wickham In this post, I’ll be exploring how genealo... [Read more...]

Quantitative Trading Strategies using quantmod

December 28, 2019 | Posts on Matthew Smith R Shenanigans

Strategies Introduction: Note: This post is unfinished. This post goes through a number of the technical trading functions in the TTR package here. I add definitions and show examples of how the functions work.
library(dplyr)
library(quantmod)
library(tidyquant)
library(TTR)
library(timetk)
library(tidyr)
library(ggplot2) 
library(directlabels)
library(data.table)
library(quantstrat)
library(purrr)
library(quantstrat)
We can download some data using the quantmod package which stores the different assets into ...
[Read more...]
1 2 3 13

Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)