Skip to content

Instantly share code, notes, and snippets.

@charlee
Created May 7, 2018 13:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save charlee/cffb8f6261382de6c27de2651c9a5f24 to your computer and use it in GitHub Desktop.
Save charlee/cffb8f6261382de6c27de2651c9a5f24 to your computer and use it in GitHub Desktop.
R for Pythoners
R Python Note
seq(1,5) == 1,2,3,4,5 range(1,5) == [1,2,3,4] The 'stop' number is included in R while excluded in Python
seq(5,1) range(5,1,-1) The sign of 'step' is automatically determined in R while must be specified explicitly in Python
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment