aRrgh icon indicating copy to clipboard operation
aRrgh copied to clipboard

A newcomer's (angry) guide to data types in R

Results 16 aRrgh issues
Sort by recently updated
recently updated
newest added

``` * If you squint, `$` acts kind of like the `.` scope operator in C-like languages, at least for data frames. If you'd write `struct.instance_variable` in C, you'd maybe...

``` +* Deep down, everything in R is a function, though. R is pretty scheme-y and LISP-y under the hood. One can write `"+"(2, 3)` to call the `+` operator...

My experience is only with [Statistical Computing: An Introduction to Data Analysis Using S-Plus](https://en.wikipedia.org/w/index.php?title=Special%3ABookSources&isbn=0471560405), but it was the best introduction to the statistical computing period (despite the name, it worked...

> Dots in identifier names are just part of the identifier. They are not scope operators. They are not operators at all. They are just a legal character to use...

I don't understand how it was a good idea to ship this language without any ability to concatenate strings other than `paste` and its counterparts like `paste0`. It means that...

In Java, I have a list (lets say implementation is `ArrayList`). It's a happy list. And you can add things do that list, because lists are not arrays and you...

Let's be honest. Apply is just broken for data frames. Defending it by saying that the user just doesn't understand the language, that the language is just fine, and the...

This burned me a few months back. ``` r f = function(x){ x } f() # Throws error: x is missing g = function(x){ letters[x] } g(1) # Returns the...

- Links to Stackoverflow for the pointer and the help for some places I thought should document this but don't. - Tried to ape the style :) - More stuff...

There are a variety of `apply`-type functions available in R. Here's what I've figured out so far: `lapply` and `sapply` both loop over a list; for each element in the...