For assignment should always use
<- rather than
class(VAR) to get the type of an object
R functions allow both positional and name based matching. So
class(x=5) are both valid invocations,
class(y=5) is not because
class does not have an argument named
y. Default arguments for functions are supported.
?method for docs, e.g.
?class. Running this in RStdudio triggers a wonderful bit of magic where docs are displayed in the output panel rather than the console.