Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

4
  • \$\begingroup\$ Not familiar with R, but does this fail to output #000000? \$\endgroup\$ Commented Sep 25, 2018 at 1:27
  • 2
    \$\begingroup\$ No, it outputs #000000. See the TIO link \$\endgroup\$ Commented Sep 25, 2018 at 1:53
  • \$\begingroup\$ @jimbo1qaz a:b-c makes a vector from a-c to b-c, inclusive (it makes a vector from a to b, then subtracts c from each entry). \$\endgroup\$ Commented Sep 25, 2018 at 8:04
  • 2
    \$\begingroup\$ Ahh, so R specifies colons with tighter precedence than arithmetic... Unlike Python slices. \$\endgroup\$ Commented Sep 25, 2018 at 8:05