This challenge is related to the R language. Note that challenges that require the answers to be in a specific language are generally discouraged.

learn more… | top users | synonyms

0
votes
1answer
217 views

Plot gif of 3 dimensional heart in R [closed]

inspired by this blog: http://alstatr.blogspot.co.uk/2014/02/r-animating-2d-and-3d-plots.html I made a 2D gif of a heart with: library(animation) saveGIF({ for(i in 1:150){ dat<- ...
3
votes
2answers
196 views

Total number of cells in R numeric dataframe

Problem statement The task is to write the shortest R statement to count the cells (rows * cols) in an instance of the R type numeric data.frame. For example, the data.frame which would be displayed ...
17
votes
3answers
444 views

Tips for golfing in R?

I'm looking for tips for golfing in the R statistical language. R is perhaps an unconventional choice for Golf. However, it does certain things very compactly (sequences, randomness, vectors, and ...
7
votes
4answers
780 views

What's the ugliest line of R code that still parses?

The goal is to produce a single line of R code that: Does as little as possible In as many characters as possible (max of 100 characters) And is as ugly as possible (where "ugly" can be taken to ...