Using paste to read and write multiple files in R

This post is a quick tip on how to use the paste1 function to read and write multiple files. First, let’s create some data. dataset = data.frame(expand.grid(Trt=c(rep("Low",10),rep("High",10)), Sex=c(rep("Male",10),rep("Female",10))), Response=rnorm(400)) The next step is not necessary, but makes the subsequent code more readable.

Gini Coefficients and the Olympic Medal Race

Today’s post will attempt to answer a provocative question: is the race for Olympic medal dominance getting more competitive? In the process of addressing this topic, we’ll learn how to directly import data from WolframAlpha into Mathematica.