extract_number_from_column: Extract number from value

View source: R/utils-long.R

extract_number_from_columnR Documentation

Extract number from value

Description

This function takes a character vector of the form 'name1' where '1' may be any number. It extracts the number and resets that character vector to just the number. It then converts the number to an integer.

Usage

extract_number_from_column(df, col)

Arguments

df

a data.table

col

column from which to extract a number


dylanrussellmd/nsqipr documentation built on Oct. 13, 2023, 11:01 a.m.