Creating a summary table in R

Placebo (N=86) Xanomeline High Dose (N=84) Xanomeline Low Dose (N=84) Total (N=254)
Age
   Mean (SD) 75.2 (8.6) 74.4 (7.9) 75.7 (8.3) 75.1 (8.2)
   Median (Q1, Q3) 76.0 (69.2, 81.8) 76.0 (70.8, 80.0) 77.5 (71.0, 82.0) 77.0 (70.0, 81.0)
   Min ; Max 52.0 - 89.0 56.0 - 88.0 51.0 - 88.0 51.0 - 89.0
   Missing 0 0 0 0
Sex
   F 53 (61.6%) 40 (47.6%) 50 (59.5%) 143 (56.3%)
   M 33 (38.4%) 44 (52.4%) 34 (40.5%) 111 (43.7%)
   Missing 0 0 0 0
Ethnicity
   HISPANIC OR LATINO 3 (3.5%) 3 (3.6%) 6 (7.1%) 12 (4.7%)
   NOT HISPANIC OR LATINO 83 (96.5%) 81 (96.4%) 78 (92.9%) 242 (95.3%)
   Missing 0 0 0 0
BMI
   Mean (SD) 23.6 (3.7) 25.3 (4.2) 25.1 (4.3) 24.7 (4.1)
   Median (Q1, Q3) 23.4 (21.2, 25.6) 24.8 (22.7, 27.9) 24.3 (22.1, 27.8) 24.2 (21.9, 27.3)
   Min ; Max 15.1 - 33.3 13.7 - 34.5 17.7 - 40.1 13.7 - 40.1
   Missing 0 0 1 1