add_var: Add variable if it doesn't exist

add_varR Documentation

Add variable if it doesn't exist

Description

Add variable if it doesn't exist

Usage

add_var(df, x)

Arguments

df

dataframe

x

character of new variable name

Value

data frame with new variable


USAID-OHA-SI/gophr documentation built on Nov. 14, 2024, 8:30 p.m.