r: rounding when head data
问题 I am not able to figure out how to get r to correctly show the head of my data. This is an assignment for Swirl, so I have to figure out how to write my code in a way that Swirl will accept as the answer. Swirl wants the final printout to look exactly like this: ## Pclass agecat Sex N survivors perc_survived ## <int> <fctr> <chr> <int> <int> <dbl> ## 1 Under 15 female 2 1 50.000000 ## 1 Under 15 male 3 3 100.000000 ## 1 15 to 50 female 70 68 97.142857 ## 1 15 to 50 male 72 32 44.444444 ## 1