Last active
August 3, 2017 13:23
-
-
Save lbusett/c323512ea41d187a53278a4cde8fd99a to your computer and use it in GitHub Desktop.
Various "R" tricks
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
# String manipulation | |
### Print an integer number with trailing zeroes | |
number = 1 | |
sprintf("%03i", number) | |
### use "easier" patterns with wildcards for regexp | |
glob2rx('*.tif') | |
# Package checking | |
### lintr: change limit on lines | |
with_defaults(line_length_linter(100)) # you love long lines |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment