ReplaceZeros {beezdemand} | R Documentation |
Replace Zeros
Description
Replaces 0 values
Usage
ReplaceZeros(dat, nrepl = 1, replnum = 0.01)
Arguments
dat |
Dataframe (long form) |
nrepl |
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. |
replnum |
Value to replace zeros. Default is .01 |
Details
Replaces specified number of 0s with replacement value.
Value
Dataframe (long form)
Author(s)
Brent Kaplan <bkaplan.ku@gmail.com>
Examples
## Replace all zeros with .01
ReplaceZeros(apt, nrepl = "all", replnum = .01)
[Package beezdemand version 0.1.2 Index]