rm1stchar | R Documentation |
Deletes the first n
character(s) of a character object.
rm1stchar(x, n = 1)
x |
Character, e.g, each element may represent the name of a single gauging station. |
n |
numeric, indicating the number of characters that have to be removed from the beginning of |
character object of the same length as x
.
Mauricio Zambrano-Bigiarini, mzb.devel@gmail
substr
## Loading the monthly time series of precipitation within the Ebro River basin.
data(EbroPPtsMonthly)
# Getting the name of each gauging station.
names <- colnames(EbroPPtsMonthly)
# Removing the initial letter 'P' of the name of each gauging station.
rm1stchar(names)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.