Working with text in RAnonymous AntelopeOctober 26, 2015Using substr() allows you to extract/replace items in a character vector. It is similar to several functions available in excel. It can also be useful when working with date/time information (i.e., pull out month, day, or year).
Use gsub to search and replace elements within a character vector.
Change to uppercase or lowercase
0 Comments
Leave a Reply. |
Spatial Ecology @ MSUClick on "Category" below to search for R code compiled by the Zarnetske Spatial & Community Ecology Lab and students in MSU's Spatial Ecology graduate course (FOR870/FW870) Category
All
Archive
October 2016
|