mirror of
https://github.com/agdamsbo/REDCapCAST.git
synced 2025-01-18 21:16:34 +01:00
24 lines
495 B
R
24 lines
495 B
R
% Generated by roxygen2: do not edit by hand
|
|
% Please edit documentation in R/as_factor.R
|
|
\name{possibly_numeric}
|
|
\alias{possibly_numeric}
|
|
\title{Tests if vector can be interpreted as numeric without introducing NAs by
|
|
coercion}
|
|
\usage{
|
|
possibly_numeric(data)
|
|
}
|
|
\arguments{
|
|
\item{data}{vector}
|
|
}
|
|
\value{
|
|
logical
|
|
}
|
|
\description{
|
|
Tests if vector can be interpreted as numeric without introducing NAs by
|
|
coercion
|
|
}
|
|
\examples{
|
|
c("1","5") |> possibly_numeric()
|
|
c("1","5","e") |> possibly_numeric()
|
|
}
|