August 2021

How to Make Production Ready Shiny Applications

August 31, 2021 | Appsilon

What defines a production-ready Shiny application? And more importantly, how do we get there? Shiny is hands down one of the best dev tools available for quick production of Proof of Concepts (PoC). But here in lies a trap. People tend to mislabel Shiny as a poor production tool because ...
[Read more...]

{gitlabr} v2.0 is on CRAN!

August 31, 2021 | Sébastien Rochette

You can read the original post in its original format on Rtask website by ThinkR here: {gitlabr} v2.0 is on CRAN! You regularly create projects on GitLab with a common skeleton, you want to retrieve the list of GitLab issues to create a report, you are looking for batch modifications ...
[Read more...]

A Latin American R community for HR

August 30, 2021 | R Consortium

By Sergio Garcia Mora R4HR, formerly known as the Club de R para RRHH, is a Latin American based community whose mission is to spread the adoption of R in... The post A Latin American R community for HR appeared first on R Consortium.
[Read more...]

Exploring Stock Market Listing Mortality since 1986

August 28, 2021 | R on Redwall Analytics

Click to see R set-up code
# Libraries
if(!require("pacman")) {
  install.packages("pacman")
}
pacman::p_load(
  data.table,
  re2,
  scales,
  ggplot2,
  plotly, 
  DT,
  patchwork,
  survival,
  ggfortify,
  scales)

# Set knitr params
knitr::opts_chunk$set(
  comment = NA,
  fig.width = 12,
  fig.height = 8,
  out.width = '100%'
)
NOTE: The read time for this post is overstated because of the formatting of the Plotly code. There are ~2,500 words, so read time should be ~10 minutes. Click to see R code generating plot
# Load function to plot dual y-axis plot
source("train_sec.R")

# Get data series from FRED
symbols <- c("CP", "GDP", "WASCUR")
start_date <- '1947-01-01'
end_date <- '2021-07-30'
quantmod::getSymbols(
  Symbols = symbols,
  src = "FRED",
  start_date = start_date,
  end_date = end_date
)
[1] "CP"     "GDP"    "WASCUR"
# Merge series and convert to dt
d <- as.data.table(merge(WASCUR/GDP, CP/GDP, join = "inner"))

# Build superimposed dual y-axis line plot
sec <- with(d, train_sec(CP, WASCUR))
p <- 
  ggplot(d, aes(index)) +
    geom_line(aes(y = CP),
              colour = "blue", 
              size = 1) +
    geom_line(aes(y = sec$fwd(WASCUR)),
              colour = "red", 
              size = 1) +
    scale_y_continuous(
      "Corporate Profits to GDP",
      labels = scales::percent,
      sec.axis = sec_axis(
        ~ sec$rev(.),
        name = "Compensation of Employees to GDP",
        labels = scales::percent)
    ) +
    scale_x_date(date_breaks = "10 years",
                 date_labels = "%Y") + 
    labs(title = "Labor vs Capital",
         x = "Year",
         caption = "Source: Lots of places") +
    theme_bw(base_size = 22)
Introduction The rise in monopoly power particularly ...
[Read more...]

How to Perform Tukey HSD Test in R

August 28, 2021 | finnstats

Tukey HSD Test in R, When there are three or more independent groups, we apply a one-way ANOVA to see if there is a significant difference. The p-value for one-way ANOVA is less than... The post How to Perform Tukey HSD Test in R appeared first on finnstats.
[Read more...]

Detecting time series outliers

August 27, 2021 | R on Rob J Hyndman

The tsoutliers() function in the forecast package for R is useful for identifying anomalies in a time series. However, it is not properly documented anywhere. This post is intended to fill that gap. The function began as an answer on CrossValidated and was later added to the forecast package because ...
[Read more...]

Shiny UI & UX With Short Live Coding Tutorial

August 27, 2021 | Appsilon

A Shiny UI It’s often said that if you don’t remember the experience of using an app or website, that’s a good thing. When a good app presents an experience that is seamless, users breeze right through. But at Appsilon we want our users to be conscious ...
[Read more...]

How to Perform Dunnett’s Test in R

August 27, 2021 | finnstats

Dunnett’s test in R, After the ANOVA test has been completed the next step is to determine which group means are significantly different from one another. Different types of post hoc tests are available... The post How to Perform Dunnett’s Test in R appeared first on finnstats.
[Read more...]
1 2 3 8

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)