Question: I'm using RStudio program, I need help with finding the mean and standard deviation for data in a file, which has some NAs (missing measurements).
I'm using RStudio program, I need help with finding the mean and standard deviation for data in a file, which has some NAs (missing measurements).
4. To calculate the mean zygomatic breadth and the sample standard deviation for males and females we could use group_by (Sex) and summarise using the mean C) and sd) functions. However, as seen below, these return NA because there are NAs in the zygomatic breadth data. Use the R documentation pages for mean and sd to figure out how to fix this problem. mergedData % group-by (Sex) %2% summarise (meanZB mean (ZygomaticBreadth.mm), sdZB sd (ZygomaticBreadth.mm)) ## # A tibble: 2x3 ## Sex meanZB sdZB ## 1 F ## 2M NA NA NA NA
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
