Skip to content
Snippets Groups Projects
endsWithDigit.Rd 536 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{endsWithDigit}
\alias{endsWithDigit}
\title{Check if a string ends with a digit}
\usage{
endsWithDigit(string)
}
\arguments{
\item{string}{The input string to be checked}
}
\value{
\code{TRUE} if the string ends with a digit, \code{FALSE} otherwise
}
\description{
This function checks whether a given string ends with a digit.
}
\examples{
endsWithDigit("abc123")  # Output: TRUE
endsWithDigit("xyz")     # Output: FALSE
}