Skip to content
Snippets Groups Projects
Commit b1bdbee6 authored by Laura A DeCicco's avatar Laura A DeCicco
Browse files

Changed name for clarity.

parent 93699242
No related branches found
No related tags found
1 merge request!39Overhaul of function names. Move some functionality to EGRET.
% Generated by roxygen2 (4.0.2): do not edit by hand % Generated by roxygen2 (4.0.2): do not edit by hand
\name{padVariable} \name{zeroPad}
\alias{padVariable} \alias{zeroPad}
\title{Pad string with leading zeros} \title{Pad string with leading zeros}
\usage{ \usage{
padVariable(x, padTo) zeroPad(x, padTo)
} }
\arguments{ \arguments{
\item{x}{string} \item{x}{string}
...@@ -18,9 +18,9 @@ Function to pad a string with leading zeros. Useful for parameter codes and USGS ...@@ -18,9 +18,9 @@ Function to pad a string with leading zeros. Useful for parameter codes and USGS
} }
\examples{ \examples{
pCode <- '10' pCode <- '10'
correctPCode <- padVariable(pCode,5) correctPCode <- zeroPad(pCode,5)
pCodes <- c('100','1000','0','12345','1565465465465465') pCodes <- c('100','1000','0','12345','1565465465465465')
correctPCodes <- padVariable(pCodes,5) correctPCodes <- zeroPad(pCodes,5)
} }
\keyword{USGS} \keyword{USGS}
\keyword{data} \keyword{data}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment