Skip to content
Snippets Groups Projects
removeDigitsAtEnd.Rd 575 B
Newer Older
Arnaud Duvermy's avatar
Arnaud Duvermy committed
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/simulation_initialization.R
\name{removeDigitsAtEnd}
\alias{removeDigitsAtEnd}
\title{Remove digits at the end of a string}
\usage{
removeDigitsAtEnd(string)
}
\arguments{
\item{string}{The input string from which digits are to be removed}
}
\value{
The modified string with digits removed from the end
}
\description{
This function removes any digits occurring at the end of a given string.
}
\examples{
removeDigitsAtEnd("abc123")  # Output: "abc"
removeDigitsAtEnd("xyz")     # Output: "xyz"
}