Skip to contents

Function used to fix for update in Rtables issue tern#593 (NA alternative -> " ") This function is similar in scope as df_explicit_na(). In the future a merge is to be expected.

Usage

replace_emptys_with_na(df, rep_str = "NA")

Arguments

df

data.frame table to act upon

rep_str

replacement string for empty strings

Details

this functions relies onto for loop, levels, and nchar. It can easily be optimized for different cases. For the moment, this fits the purpose to fix issue tern#593

See also