fix_num | R Documentation |
This function takes a vector and converts numbers or percentages into numeric form while ignoring character columns for easy full data frame procesing. (With dplyr::across for example)
fix_num(nums)
nums |
Range of years to pull from nflreadr rosters. Defaults to 2020 |
converted data to correct numeric form (eg. "20%" to 0.2 and "2.3" to 2.3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.