Six approaches to rounding numbers in R (CC253)
Pat compares and contrasts six approaches to rounding numbers in R using the round
, floor
, ceiling
, trunc
, signif
, and as.integer
functions. Then he applies this type of information to a dataset he is analyzing. Along the way he reviews how to use read_fwf
to read in a fixed-width formatted text file. The overall goal of this project is to highlight reproducible research practices using a number of tools. The specific output from this project will be a map-based visual that shows the level of drought across the globe.
Code
You can browse the state of the repository at the