Quora Feeds
Active Member
Jessica Su
Read a book; I recommend "The Art of R Programming," by Norman Matloff.
It's important to read this because R does not work like other languages. For instance, numbers like 1 are actually one-element vectors of length 1, and the reason you can "multiply a number by a vector" is because the number gets expanded into a vector of the same length as the other vector, and the two vectors are multiplied componentwise.
I never would have suspected this from my experience with C++/Python, and before I read a book, R seemed quite aRbitrary. I could make plots by googling how to do stuff, but I was far from being able to write arbitrarily complex programs and actually know what they would do.
See Questions On Quora
Continue reading...
Read a book; I recommend "The Art of R Programming," by Norman Matloff.
It's important to read this because R does not work like other languages. For instance, numbers like 1 are actually one-element vectors of length 1, and the reason you can "multiply a number by a vector" is because the number gets expanded into a vector of the same length as the other vector, and the two vectors are multiplied componentwise.
I never would have suspected this from my experience with C++/Python, and before I read a book, R seemed quite aRbitrary. I could make plots by googling how to do stuff, but I was far from being able to write arbitrarily complex programs and actually know what they would do.
See Questions On Quora
Continue reading...