changeBinsize | R Documentation |
Change the bin size of a weight frequency data.frame
changeBinsize(df, binsize = 10, keepZeros = TRUE)
df |
data.frame with colums 'Weight' and 'Freq' |
binsize |
numeric, the bin size in grams |
keepZeros |
logical, if TRUE the bins with zero observation are not removed |
data.frame with weight frequencies binned with bin size binsize
## Simulate a data set with bin size equal to 100 gr
dat <- simulateData3(binsize=100)
## Change the bin size to 200 gr
dat <- changeBinsize(dat$df, binsize = 200)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.