R convert summary result (statistics with all dataframe columns) into dataframe
问题 [I'm new to R...] I have this dataframe: df1 <- data.frame(c(2,1,2), c(1,2,3,4,5,6), seq(141,170)) #create data.frame names(df1) <- c('gender', 'age', 'height') #column names I want the df1 's summary in a dataframe object that looks like this: count mean std min 25% 50% 75% max age 30.0000 3.5000 1.7370 1.0000 2.0000 3.5000 5.0000 6.0000 gender 30.0000 1.6667 0.4795 1.0000 1.0000 2.0000 2.0000 2.0000 height 30.0000 155.5000 8.8034 141.0000 148.2500 155.5000 162.7500 170.0000 I've generated