April 2017

Calibrating C14 dates

April 12, 2017 | Xavier

C14 sampling is the most popular technique that archaeologists use to estimate absolute dates of sites. The method uses an organic sample to measure radiocarbon age that finally needs to be calibrated to calendar years (see the Wikipedia entry for details). I have always been puzzled that C14 samples are ... [Read more...]

Dataviz of the week, 12/4/17

April 12, 2017 | Robert

This week, a chart with some Bayesian polemic behind it. Alexander Etz put this on Twitter: He is working on an R package to provide easy Bayesian adjustments for reporting bias with a method by Guan & Vandekerchhove. Imagine a study … Continue reading →
[Read more...]

pandas “transform” using the tidyverse

April 11, 2017 | Abhijit

Chris Moffit has a nice blog on how to use the transform function in pandas. He provides some (fake) data on sales and asks the question of what fraction of each order is from each SKU. Being a R nut and a tidyverse fan, I thought to compare and contrast ... [Read more...]

A little R prank

April 11, 2017 | insightr

By Gabriel Vasconcelos R functions The book Advanced R, by Hadley Wickham, shows a very interesting statement: “To understand R, two slogans are Helpful: Everything that exists in an object. Everything that happens is a function call.” – John Chambers … Continue reading → [Read more...]

Copper, Gold and Ten-Year Treasury Notes

April 11, 2017 | R Views

Today, we will continue getting familiar with data from Quandl, but will also devote more time to expanding our dygraphs toolkit. We will be building up a data visualization in discrete pieces, which isn’t very efficient, but will make things easier when we move this project into production as ... [Read more...]

Copper, Gold and Ten-Year Treasury Notes

April 11, 2017 | R Views

Today, we will continue getting familiar with data from Quandl, but will also devote more time to expanding our dygraphs toolkit. We will be building up a data visualization in discrete pieces, which isn’t very efficient, but will make things easier when we move this project into production as ... [Read more...]

Sow the seeds, know the seeds

April 11, 2017 | Maëlle Salmon

When you do simulations, for instance in R, e.g. drawing samples from a distribution, it’s best to set a random seed via the function set.seed in order to have reproducible results. The function has no default value. I think I mostly use set.seed(1).... [Read more...]

The National Map Base Maps

April 11, 2017 | The USGS OWI blog

A number of map services are offered through The National Map (TNM). There are no use restrictions on these services. However, map content is limited to the United States and Territories. This post explains how to integrate TNM services within your own interactive web map using Leaflet for R. R ... [Read more...]

Prepare real-world data for analysis with the vtreat package

April 11, 2017 | David Smith

As anyone who's tried to analyze real-world data knows, there are any number of problems that may be lurking in the data that can prevent you from being able to fit a useful predictive model: Categorical variables can include infrequently-used levels, which will cause problems if sampling leaves them unrepresented ... [Read more...]

Teaching pivot / un-pivot

April 11, 2017 | Nina Zumel

Authors: John Mount and Nina Zumel Introduction In teaching thinking in terms of coordinatized data we find the hardest operations to teach are joins and pivot. One thing we commented on is that moving data values into columns, or into a “thin” or entity/attribute/value form (often called “un-pivoting”, “...
[Read more...]

Building Shiny App exercises part 10

April 11, 2017 | Euthymios Kasvikis

SHINY DASHBOARD STRUCTURE & APPEARANCE Finally we reached in the final part of our series. At this part we will see how to improve the structure and the appearance of our dashboard even more, according to our preferences and of course make it more attractive to the user. Last but not ... [Read more...]

Bio7 2.5 for MacOSX Released

April 11, 2017 | R – Bio7 Website

11.04.2017 A new release of Bio7  for MaxOSX (64-bit) is available. This release comes with a plethora of new functions for MacOSX and R. (Screenshot with Bio7 Dark theme enabled and custom font colors of the R editor) Bio7 2.5 Release Notes Installation: Download and extract the installation file from http://bio7.... [Read more...]

Custom comparison function for sorting data in R

April 11, 2017 | January

Many languages allow you to use a custom comparison function in sorting. R is not an exception, but it is not entirely straightforward – it requires you to define a new class and overload certain operators. Here is how to do it. Consider the following example. You have a certain number ...
[Read more...]

Data validation with the assertr package

April 11, 2017 | Tony Fischetti

This is cross-posted from Tony's blog onthelambda.com Version 2.0 of my data set validation package assertr hit CRAN just this weekend. It has some pretty great improvements over version 1. For those new to the package, what follows is a short and new introduction. For those who are already using assertr, ... [Read more...]

Sakura blossoms in Japan

April 10, 2017 | Christoph Safferling

Springtime and cherry blossoms It is spring, and the flowers bloom. One tree in particular symbolises this: the Japanese cherry (sakura) tree. Every year, millions of Japanese enjoy hanami, jointly watching the cherry blossoms, philosophising abo... [Read more...]

Extending existing packages: Rmisc

April 10, 2017 | Florian Teschner

One of my favorite packages is Rmisc. The package includes the summarySE function which I use on a daily basis. The function provides a concise way to get a data frame with mean and standard errors of the mean. It is a great way in conjunction with ggp... [Read more...]
1 9 10 11 12 13 16

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)