2021

Indexing from zero in R

December 6, 2021 | David Selby

Everybody knows that R is an inferior programming language, because vector indices start from 1, whereas in real programming languages like C and Python, array indexing begins from 0. Sometimes this can be quite annoying if a problem—be it a math... [Read more...]

9 new books added to Big Book of R

December 5, 2021 | Oscar

06 December 2021 Every time I update Big Book of R I’m blown away by how much good stuff is out there! In this release there’s 9 new books which covers the widest range of topics of any release to date :). Thanks to Sivuyile Nzimeni for one of the … The post 9 ... [Read more...]

Today I Learnt

December 5, 2021 | R on Harshvardhan

This page contains the articles, apps and videos that I’ve found engaging. Not frequently updated since I started using Notion. Data Science Advise Blogs Advice to aspiring data scientist... [Read more...]

Easy Interpretations of ADF Test in R

December 5, 2021 | sang-heon lee

This post shows how to interpret the results of the augmented Dickey-Fuller (ADF) test easily with the help of Hank Roark's R function. His R function provides kind descriptions of the results of a unit root ADF test. I explains why this description...
[Read more...]

R function to fill in merged cells

December 4, 2021 | R with White Dwarf

This post is part of our series on functions in R. You can see our previous post if you want to understand the basics but it is not strictly necessary. Here we will go into detail about for loops and if statements in R, two key elements of any function. ...
[Read more...]

Why R? 2021 Invited Talks

December 4, 2021 | Why R? Foundation

This year we are organizing the fifth edition of Why R? 2021 conference. As the meetings are held in English we invite R users from all over the globe! The program is available on our youtube.com/WhyRFoundationVideos channel. Go and check what lecture... [Read more...]

Error in apply: dim(X) must have a positive length

December 4, 2021 | finnstats

Visit for the most up-to-date information on Data Science, employment, and tutorials finnstats. If you want to read the original article, go here Error in apply: dim(X) must have a positive length Error in apply(data$x, 2, mean): dim(X) must have a positive length, In this post, you’...
[Read more...]

Augmented Dickey-Fuller (ADF) Test in R

December 4, 2021 | sang-heon lee

This post explains how to use the augmented Dickey-Fuller (ADF) test in R. The ADF Test is a common statistical test to determine whether a given time series is stationary or not. We explain the interpretation of ADF test results from R package by m...
[Read more...]

Sea Monsters that Lost their Way

December 3, 2021 | R | Quantum Jitter

library(tidyverse)
library(tidymodels)
library(probably)
library(finetune)
library(textrecipes)
library(stopwords)
library(wesanderson)
library(kableExtra)
library(clock)
library(glue)
library(janitor)
library(vip)
library(ggrepel)
library(tictoc)
library(doParallel)

registerDoParallel(cores = 6)
theme_set(theme_bw())

(cols <- wes_palette(name = "Darjeeling2"))
The Natural History Museum began recording cetacean (whales, dolphins and porpoises) strandings in 1913. I’d like to explore this 1913-1989 dataset.
strandings_df <- read_csv("strandings.csv") %>%
  clean_names() %>% 
  mutate(
    date = date_parse(date, format = "%d/%m/%Y"),
    length = parse_number(length_et),
    species_lumped = fct_lump_n(species, 20),
    across(ends_with("_val"), as.integer)
  )

# glimpse(strandings_df)
Exploratory Some of the species labels contain a question mark or forward slash. This indicates uncertainty, so it might be fun to see if a machine ...
[Read more...]

Mapping iNaturalist Data in R

December 3, 2021 | Andy Lyons

This post was originally published from IGIS as a Tech Note. Enjoy! Introduction iNaturalist is an enormously popular platform for recording and sharing observations of nature. Most people interact with iNaturalist through the Android or iOS phone app, but a little known fact is the platform also has an API (...
[Read more...]
1 6 7 8 9 10 117

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)