Transpose Data Frame in R (Example) | Rotate Matrix & Table with t Function | Numeric Row & Column

preview_player
Показать описание
R code of this video:

x2 = 2:6,
x3 = 3:7)

t(data) # Transpose data with t() function
Рекомендации по теме
Комментарии
Автор

this was the best and simplest explanation I have found. Thanks

kattiacristina
Автор

what do you do with column with x1, x2 particularly if you have years in there and now they read x2010, x2011?

rapatel
Автор

I just have question about the transposition of data. I tried to transpose a dataframe containing numerical values. after the transposition, the numerical values are considered as "character". how can I change the class? thank you.

yanibadab
Автор

Please help ! Transposing a data_frame is changing the type of data_frame to double !! How to transpose a DF to a DF ?

bhargavapothakamuri
Автор

Thanks for the video! I became the first person to give a like! After this function it doesn't remains a dataframe, as it turns into a matrix table. You could have added how to change it to dataframe and also to change the news row lables generated as X1, X2... like wise! Still in hurry... :) !

kishenjit
Автор

but i find it tricky using t(), because my data is being coerced to the type i dont want and downgraded to a matrix instead of dataframe

fatriantobong
Автор

I would give 5000 likes if I can! Thanks for the video.

amychan
visit shbcf.ru