Home > front end >  R position the header
R position the header

Time:01-27

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.

CodePudding user response:

Just transform it. t()

df <- as.data.frame(t(starting_df))
  •  Tags:  
  • Related