how to make a table with sum data?

Hi i need to create a table with summarized data of mean, median, sd and range of ages from rows.

what function could help me do this?

There are a lot of them.

Here is a survey of some of them. A quick glance says suggests that describe in the psych package might be helpful.

You can also build your own using summary() in the dplyr package.

Thanks! this worked perfectly