Skip to content

Instantly share code, notes, and snippets.

@theotherdy
Last active October 5, 2018 09:11
Show Gist options
  • Save theotherdy/f3e236ac54410c36bf56fdac7464b2bf to your computer and use it in GitHub Desktop.
Save theotherdy/f3e236ac54410c36bf56fdac7464b2bf to your computer and use it in GitHub Desktop.
4.3 Data Management: Essential Commands 6-10
# by isn't needed
seq(from = 1, to = 10) # I could get the same result with seq(1, 10)
## [1] 1 2 3 4 5 6 7 8 9 10
# with a decrement
seq(from = 10, to = 1, by = -2)
# without specifying argument names, and with a fractional increment
seq(1, 10, 1.2)
## [1] 1.0 2.2 3.4 4.6 5.8 7.0 8.2 9.4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment