mirror of
https://github.com/agdamsbo/REDCapCAST.git
synced 2025-01-19 05:21:56 +01:00
24 lines
495 B
Plaintext
24 lines
495 B
Plaintext
|
% 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()
|
||
|
}
|