Articles by rdata.lu Blog | Data science with R

Analysis of the Renert – Part 3: Visualizations

January 25, 2018 | rdata.lu Blog | Data science with R

This is part 3 of a 3 part blog post. This post uses the data that was scraped in part 1 and prepared in part 2. Now that we have the data in a nice format, let’s make a frequency plot! First let’s load the data and the packages:
library("tidyverse")
library("ggthemes") # To use different themes and colors
renert_tokenized = readRDS("renert_tokenized.rds")
Using the ... [Read more...]

Skip errors in R loops by not writing loops

December 20, 2017 | rdata.lu Blog | Data science with R

You probably have encountered situations similar to this one:
result = vector("list", length(some_numbers))

for(i in seq_along(some_numbers)){
  result[[i]] = some_function(some_numbers[[i]])
}

print(result)
First I initialize result, an empty list of size equal to the length of some_numbers which will contains the results of applying some_function() to each element of some_numbers. Then, using a for loop, I apply the function. ... [Read more...]

Functional peace of mind

November 13, 2017 | rdata.lu Blog | Data science with R

I think what I enjoy the most about functional programming is the peace of mind that comes with it. With functional programming, there’s a lot of stuff you don’t need to think about. You can write functions that are general enough so that they solve a variety of ... [Read more...]

Barplot with ggplot2/plotly

October 15, 2017 | rdata.lu Blog | Data science with R

Hello everyones, I just finished my MOOC on Foundations of strategic business analitycs. It was interresting and at the end of this course, I had to present a graph that was suppose to be relevent for a business organization. Different datasets were availables: speed dating, Co2 emissons, bike sharing, loans, ... [Read more...]
1 2

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)