May 2020

Updating packages on a drat repo

May 2, 2020 | R on Alan Yeung

This is just a small note (mainly for myself but hopefully may be of some use to a few others!) to remind of how to update a package on a drat repo. Create the source file for the package you want to host on the drat repo using devtools::build(). ... [Read more...]

Advanced Plots with str_glue()

May 2, 2020 | Exploring Data

Source: https://bit.ly/2CGyS6I Quick Overview Exploring-Data is a place where I share easily digestible content aimed at making the wrangling and exploration of data more efficient (+fun). Sign up Here to join the many other subscribers who also nerd out on new tips and tricks ???? And if ...
[Read more...]

Updating packages on a drat repo

May 2, 2020 | R on Alan Yeung

This is just a small note (mainly for myself but hopefully may be of some use to a few others!) to remind of how to update a package on a drat repo. Create the source file for the package you want to host on the drat repo using devtools::build(). ... [Read more...]

An update to “An adventure in downloading books”

May 2, 2020 | Anindya Mozumdar

I received an email from Bernardo Lares as feedback on my previous article. You can also view some of the other cool work done by him in this link. His script is provided below. He uses the rvest package and the %__% operator to keep it really short and simple.
library(rvest)
library(dplyr)
library(stringr)

list <- "https://towardsdatascience.com/springer-has-released-65-machine-learning-and-data-books-for-free-961f8181f189"
aux <- read_html(list) %>%
  html_node("div") %>%
  html_text() %>%
  str_split("http://link.springer.com/openurl\\?genre=book&isbn=")
ids <- substr(unlist(aux), 1, 17)[-1]
sapply(ids, function(x) {
  url <- paste0("https://link.springer.com/content/pdf/10.1007%2F", x, ".pdf")
  download.file(url, paste0(x, ".pdf"), mode = "wb")
})
[Read more...]

Text Plots

May 2, 2020 | Super User

A few weeks ago, we pushed R package textplot to CRAN and it was accepted for release last week. The package contains straightforward functionalities for the visualisation of text, namely of  text cooccurences text clusters (in casu biterm clusters) dependency parsing results text correlations and text frequencies Some examples of ... [Read more...]

Riddler: Can You Flip Your Way To Freedom?

May 2, 2020 | Posts | Joshua Cook

FiveThirtyEight’s Riddler Express Dakota Jones is back in action. In her quest to locate the Temple of Diametra, she has found another highly symmetric crystal. However, nefarious agents have again gotten wind of her plans, and now Dakota and the crystal are nowhere to be found. And so, you ... [Read more...]

Europe COVID-19 death map

May 2, 2020 | Michael

COVID-19 deaths in Europe# Europe COVID-19 deaths animated map # http://r.iresmi.net/ # data European Centre for Disease Prevention and Control # packages ---------------------------------------------------------------- library(tidyverse) library(httr) library(fs) library(sf) library(readxl) library(janitor) library(glue) library(tmap) library(grid) library(classInt) library(magick) # + btb, raster, fasterize, plyr # sources ... [Read more...]

Spotify Song Analytics

May 1, 2020 | r on Joel Soroos

Motivation Spotify is an amazing app to play favorite music, discover new music and rediscover old favorites. In addition, the Spotify API provides free access to a wide array of data on songs, which R users can leverage via Charlie Thompson's spot...
[Read more...]

Combine values into a vector

May 1, 2020 | Quantargo Blog

Combine values into a vector Everything is a vector Get to know different data types in R Learn how to create vectors Use the : operator to create numeric sequences Use the concatenate function c() to create vectors of different data types 1:100 c(...
[Read more...]
1 15 16 17

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)