how to transpose a dataframe code example
Example 1: r transpose dataframe
iris_transpose <- as.data.frame(t(as.matrix(iris_df)))
iris_transpose
Example 2: transpose of dataframe
result = df.transpose()
iris_transpose <- as.data.frame(t(as.matrix(iris_df)))
iris_transpose
result = df.transpose()