powered by
Replaces 0 values
ReplaceZeros(dat, nrepl = 1, replnum = 0.01)
Dataframe (long form)
Number of zeros to replace with replacement value (replnum). Can accept either a number or "all" if all zeros should be replaced. Default is to replace the first zero only.
Value to replace zeros. Default is .01
Brent Kaplan bkaplan.ku@gmail.com
Replaces specified number of 0s with replacement value.
## Replace all zeros with .01 ReplaceZeros(apt, nrepl = "all", replnum = .01)
Run the code above in your browser using DataLab