ReplaceZeros | R Documentation |
Replaces 0 values
ReplaceZeros(dat, nrepl = 1, replnum = 0.01)
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 |
Replaces specified number of 0s with replacement value.
Dataframe (long form)
Brent Kaplan <bkaplan.ku@gmail.com>
## Replace all zeros with .01
ReplaceZeros(apt, nrepl = "all", replnum = .01)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.