This post reviews basic R vector operations such as addition and multiplication. I expected that there might be “shape” constraints such as what is seen with NumPy broadcasting, but that is not the case. As I mentioned in the first… Read More ›
R Programming
Vectors in R Programming
Understanding vectors in R programming is at the core of learning the language. In this post, I’ll touch on some of the basics of vector implementation in R and examples of useful functions such as c(), seq(), rep(). The official… Read More ›
R Programming While and For Loops
R Programming while loops take on the same syntax as seen in JavaScript, C, C#, and many other languages. However, with for loops the iterator style reflects something like a combination of Python iterator syntax mixed with aforementioned languages’ parenthesis… Read More ›
Variables and Operators in R Programming
Variables and operators in R programming are very similar to many other languages I know, so I’m not going to add notes about arithmetic operators +, -, *, / or most logical operators <, >, <=, >=, etc. Not (!)… Read More ›
Basic Atomic Variables in R Programming
There are five basic atomic variables in R Programming. Being new to the language, the first thing that threw me for a loop was that the assignment operator is “<-“. I’ve professionally programmed in C, C++, Perl, PHP, JavaScript, C#,… Read More ›