What's new

convert prop.table to dataframe [duplicate]

Fever

Active member
Staff member
I would like to save the output of prop.table as it is to a data frame where rownames are Species and colnames are Petal.Width.

prop.table(table(iris$Species, iris$Petal.Width))


Is the an easy way to do this? Thank you

Continue reading...
 
Top