'R position the header

I have a table in R code and this is how the table looks below.

Age Sex
10   20

I want to position the header in the column side

Age    10
Sex    20

Any idea on how to position the header in the left side.

r


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source