How does R treat positional arguments
Posted
by
inspectorG4dget
on Stack Overflow
See other posts from Stack Overflow
or by inspectorG4dget
Published on 2013-10-26T03:51:30Z
Indexed on
2013/10/26
3:53 UTC
Read the original article
Hit count: 195
I'm a python guy and very new to R (so far, all I've done is copy-paste code and screen-shot the resulting, graph).
I would now like to actually learn the language so that I can draw useful plots (right now, I am trying to plot this).
In attempting my first plot, I came across this function call:
sets_options("universe", seq(from = 0, to = 25, by = 0.1))
Now, I would like to know if I can achieve the same result by calling
sets_options("universe", seq(0, 25, 0.1))
The help page for seq
doesn't speak to this specifically (or I'm not reading it correctly), so I was hoping someone could shed some light on how R handles positional arguments
I tried calling the function that way in R and it worked (no syntax errors, etc), but I don't know how to test the output of that function, so I'm forced to ask here
© Stack Overflow or respective owner