Transpose a dataframe without accidentally converting everything to character. Assumes first column of input is a vector of feature names. If any of the data is non-numeric you're SOL and tranposed cols will be character as well.

t_df(df)

Arguments

data

An unfortunately transposed data frame

Value

Transposed dataframe with appropriate column types