How to transpose a data frame with the t() function in the R programming language. More details: https://statisticsglobe.com/r-transpo...
R code of this video:
data <- data.frame(x1 = 1:5, # Create example data
x2 = 2:6,
x3 = 3:7)
row.names(data) <- LETTERS[1:5]
t(data) # Transpose data with t() function
On this page of the site you can watch the video online Transpose Data Frame in R (Example) | Rotate Matrix & Table with t Function | Numeric Row & Column with a duration of hours minute second in good quality, which was uploaded by the user Statistics Globe 20 May 2020, share the link with friends and acquaintances, this video has already been watched 10,297 times on youtube and it was liked by 84 viewers. Enjoy your viewing!