Replace Blanks with Specified Value
replace_blank.Rd
Replace blanks with specified value.
Arguments
- data
A data object.
- replace
A string to use for replacement.
- ...
Additional arguments passed on to methods. Not currently used.
Value
If
data
is a vector,replace_blank()
returns a vector of the same class asdata
(only blanks in character vectors are modified).If
data
is a list,replace_blank()
will recurse into the list (as necessary) and replace all blank values in character/list elements but will skip other internal components (e.g. data.frames, matrices, etc).