destring: A Stata-esque destring function for converting...

Description Usage Arguments

View source: R/destring.R

Description

This function converts character and factor variables to numeric, or leaves the variable as is if it is already numeric. If the variable is some other type, the function will throw an error and, if the script is being sourced, stop the script from running further.

Usage

1

Arguments

x

Input the variable to be converted.


gcpsresearch/refuns documentation built on June 23, 2020, 11:02 a.m.