Here is my problem
I have this sample data.frame:
Name=c("a","b","c","d")
Value=c(12.3,10.5,2.6,1.2)
Label=c("label1","label2","label3","label4")
df=data.frame(Name,Value,Label)
I want to create a table only for displaying (in a Rnotebook) with the data in df but flipping rows and columns.
Is it an efficient way to do it? flextable or kable do not seem to have flipping possibilities.
A data.frame transposition is not a solution since columns can't mix different data types (numeric, character)...
I can't imagine nobody encountered the problem...
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.