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

-1
votes
0answers
43 views

Foreward DCC GARCH correlation forecasts [closed]

First post please be nice. I'm having trouble figuring out how to get foreward correlation forecasts in dcc.estimation in package ccgarch. I've done it for the variance forecast to 5 periods ahead. ...
0
votes
1answer
263 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
212 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
471 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
798 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 ...