Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Aug 12th, 2012  |  syntax: None  |  size: 0.24 KB  |  hits: 11  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. R numbers from 1 to 100 [closed]
  2. > range(1,100)
  3. [1]   1 100
  4.        
  5. range(c(10, -5, 100))
  6.        
  7. -5 100
  8.        
  9. 1:100
  10.        
  11. ##Step size of 2
  12. seq(1, 100, by=2)
  13.        
  14. ##length.out: desired length of the sequence
  15. seq(1, 100, length.out=5)
  16.        
  17. seq(a, b, -1)