Blog Archives

First steps with monads in Scala

April 15, 2016
By
First steps with monads in Scala

Introduction In the previous post I gave a quick introduction to some important concepts in functional programming, such as HOFs, closures, currying and partial application, and hopefully gave some insight into why these concepts might be useful in the context of scientific computing. Another concept that is very important in modern functional programming is that … Continue reading First steps with monads in Scala

Read more »

HOFs, closures, partial application and currying to solve the function environment problem in Scala

November 16, 2015
By
HOFs, closures, partial application and currying to solve the function environment problem in Scala

Introduction Functional programming (FP) is a programming style that emphasises the use of referentially transparent pure functions and immutable data structures. Higher order functions (HOFs) tend to be used extensively to enable a clean functional programming style. A HOF is just a function that either takes a function as an argument or returns a function. … Continue reading HOFs, closures, partial application and currying to solve the function environment problem…

Read more »

Data frames and tables in Scala

August 21, 2015
By
Data frames and tables in Scala

Introduction To statisticians and data scientists used to working in R, the concept of a data frame is one of the most natural and basic starting points for statistical computing and data analysis. It always surprises me that data frames aren’t a core concept in most programming languages’ standard libraries, since they are essentially a … Continue reading Data frames and tables in Scala

Read more »

Data frames and tables in Scala

August 21, 2015
By
Data frames and tables in Scala

Introduction To statisticians and data scientists used to working in R, the concept of a data frame is one of the most natural and basic starting points for statistical computing and data analysis. It always surprises me that data frames aren’t a core concept in most programming languages’ standard libraries, since they are essentially a … Continue reading Data frames and tables in Scala

Read more »

Calling R from Scala sbt projects using rscala

August 15, 2015
By
Calling R from Scala sbt projects using rscala

Overview In the previous post I showed how the rscala package (which has replaced the jvmr package) can be used to call Scala code from within R. In this post I will show how to call R from Scala code. I have previously described how to do this using jvmr. This post is really just … Continue reading Calling R from Scala sbt projects using rscala

Read more »

Calling R from Scala sbt projects using rscala

August 15, 2015
By
Calling R from Scala sbt projects using rscala

Overview In the previous post I showed how the rscala package (which has replaced the jvmr package) can be used to call Scala code from within R. In this post I will show how to call R from Scala code. I have previously described how to do this using jvmr. This post is really just … Continue reading Calling R from Scala sbt projects using rscala

Read more »

Calling Scala code from R using rscala

August 15, 2015
By
Calling Scala code from R using rscala

Introduction In a previous post I looked at how to call Scala code from R using a CRAN package called jvmr. This package now seems to have been replaced by a new package called rscala. Like the old package, it requires a pre-existing Java installation. Unlike the old package, however, it no longer depends on … Continue reading Calling Scala code from R using rscala

Read more »

Calling Scala code from R using rscala

August 15, 2015
By
Calling Scala code from R using rscala

Introduction In a previous post I looked at how to call Scala code from R using a CRAN package called jvmr. This package now seems to have been replaced by a new package called rscala. Like the old package, it requires a pre-existing Java installation. Unlike the old package, however, it no longer depends on … Continue reading Calling Scala code from R using rscala

Read more »

Index to first 50 posts

April 10, 2015
By
Index to first 50 posts

This is the 50th post to this blog. For my 25th post I provided a catalogue of my first 25 posts, and as promised then, I now provide a similar index for posts 25 to 50. 25. Catalogue of my first 25 blog posts 26. Multivariate data analysis (using R): a course and some lecture … Continue reading Index to first 50 posts

Read more »

Index to first 50 posts

April 10, 2015
By
Index to first 50 posts

This is the 50th post to this blog. For my 25th post I provided a catalogue of my first 25 posts, and as promised then, I now provide a similar index for posts 25 to 50. 25. Catalogue of my first 25 blog posts 26. Multivariate data analysis (using R): a course and some lecture … Continue reading Index to first 50 posts

Read more »


Subscribe

Email:

  Subscribe