How to transpose data frame using t() function in Exploratory?

You can use do() function from dplyr to make t() function work as long as it’s used along with something like ‘as.data.frame’ (base) or ‘as_data_frame’ (tibble) to return it in a data frame format, instead of matrix. So it would be something like this. (Click ‘Command’ button to get into the command mode.)

do(as.data.frame(t(.)))

2 Likes