Last active
October 5, 2018 09:11
-
-
Save theotherdy/f3e236ac54410c36bf56fdac7464b2bf to your computer and use it in GitHub Desktop.
4.3 Data Management: Essential Commands 6-10
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# by isn't needed | |
seq(from = 1, to = 10) # I could get the same result with seq(1, 10) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## [1] 1 2 3 4 5 6 7 8 9 10 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# with a decrement | |
seq(from = 10, to = 1, by = -2) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## [1] 10 8 6 4 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# without specifying argument names, and with a fractional increment | |
seq(1, 10, 1.2) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## [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