I try to follow the tidyverse
approach and I extracted numerical data as tibble. As a matrix I would just transpose the data. There seems to be the function tribble
in tibble
for this but I can not make it work.
How can I set the column names in the call? I can't see it from the help.
library(tidyverse)
iris = as_data_frame(iris)
iris = select(iris,-Species)
tribble(iris)
gives the error
Error: no column names detected in 'tribble()' call
PS: I think there should be an easier way than doing this.