replace_nas {pmartR} | R Documentation |
Replace NA with 0
Description
This function finds all instances of NA in e_data and replaces them with 0.
Usage
replace_nas(edata, edata_cname)
Arguments
edata |
A |
edata_cname |
A character string specifying the name of the ID column in the e_data data frame. |
Details
This function is used in the as.seqData functions to replace any NA values with 0s.
Value
An updated e_data data frame where all instances of NA have been replaced with 0.
[Package pmartR version 2.4.5 Index]