Google RLint: Reformatting R Code to Follow the Google St User Manual Page 12

  • Download
  • Add to my manuals
  • Print
  • Page
    / 19
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 11
Google Confidential and Proprietary
Ex: Ease checking program correctness
Code
x <- -5:-1
x[x <-2] # Hmm ...
Warning
Must have whitespace around <-, <<-, etc
Corrected code
x <- -5:-1
x[x <- 2]
Page view 11
1 2 ... 7 8 9 10 11 12 13 14 15 16 17 18 19

Comments to this Manuals

No comments