July 2016

dplyr basics

July 18, 2016 | Alexej's blog

This blog post demonstrates the usage of the R package dplyr. It turns out that dplyr is intuitive to the point where I probably won’t ever need to look back at this summary. A nice and very concise dplyr and tidyr cheat sheet is available from RSt... [Read more...]

dplyr basics

July 18, 2016 | Alexej's blog

This blog post demonstrates the usage of the R package dplyr. It turns out that dplyr is intuitive to the point where I probably won’t ever need to look back at this summary. A nice and very concise dplyr and tidyr cheat sheet is available from RSt...
[Read more...]

dplyr basics

July 18, 2016 | Alexej's blog

This blog post demonstrates the usage of the R package dplyr. It turns out that dplyr is intuitive to the point where I probably won’t ever need to look back at this summary. A nice and very concise dplyr and tidyr cheat sheet is available from RSt... [Read more...]

Casting Call for MERS-CoV in Korea, 2015

July 18, 2016 | Theory meets practice...

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License. The markdown+Rknitr source code of this blog is available under a GNU General Public License (GPL v3) license from . Abstract We perform an adjustment for observed-but-not-yet-reported cases (aka. nowcasting) for the epidemic curve of the Middle East respiratory ...
[Read more...]

Escalating Life Expectancy

July 18, 2016 | Andrew Collier

I’ve added mortality data to the lifespan package. A result that immediately emerges from these data is that average life expectancy is steadily climbing. The effect is more pronounced for men, rising from around 66.5 in 1994 to 70.0 in 2014. The corresponding values for women are 74.6 and 76.5 respectively. Good news for everyone. […] [Read more...]

EARL 2016 London Workshops Selling Fast

July 18, 2016 | Angela Roberts

A Great Choice of Workshops With less than two months to go until EARL2016 in London, the Workshops are filling up fast and this year for the first time we are offering workshops to non-conference attendees. The UK’s only R Conference this year … Continue reading → [Read more...]

Dance of the Bayes factors

July 18, 2016 | Daniel Lakens

You might have seen the ‘Dance of the p-values’ video by Geoff Cumming (if not, watch it here). Because p-values and the default Bayes factors (Rouder, Speckman, Sun, Morey, & Iverson, 2009) are both calculated directly from t-values and sample sizes, we might expect there is also a Dance of the Bayes ...
[Read more...]

Dance of the Bayes factors

July 18, 2016 | Daniel Lakens

You might have seen the ‘Dance of the p-values’ video by Geoff Cumming (if not, watch it here). Because p-values and the default Bayes factors (Rouder, Speckman, Sun, Morey, & Iverson, 2009) are both calculated directly from t-values and sample sizes, we might expect there is also a Dance of the Bayes ...
[Read more...]

New Release of partools Package

July 17, 2016 | matloff

My new release of partools is now on CRAN. The package is aimed at doing parallel data science in what I call an “un-MapReduce” manner. It takes the point of view that MapReduce-based frameworks such as Hadoop and Spark are fine for the types of applications their designers had in ... [Read more...]

Data frame columns as arguments to dplyr functions

July 17, 2016 | Econometrics and Free Software

Suppose that you would like to create a function which does a series of computations on a data frame. You would like to pass a column as this function’s argument. Something like:
data(cars)
convertToKmh <- function(dataset, col_name){
  dataset$col_name <- dataset$speed * 1.609344
  return(dataset)
}
This example is obviously not very interesting (you don’t need a function for this), but ... [Read more...]
1 5 6 7 8 9 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)