I am trying to make a table in R for a particular set of data by creating five columns (name, total number of a particular name, mean, SD, and range).
I already have a dataset(sizes) with columns: name, height(H), and weight(W) and I would like to create a table using the sizes data with columns labeled as: name, total number of a particular name, mean of H, SD of H, and range of H, mean of W, SD of W, and range of W. However, I am having trouble extracting the data by name. Any suggestions?
example of dataframe (sizes) desired table
This may be a rookie question, but that is exactly what I am in the R world so any help would be great!