r - summary to a data frame -


using summary(var) gives me following output:

pay_back_org      min.   : -16.40    1st qu.:   0.00    median :  26.40    mean   :  34.37    3rd qu.:  53.60    max.   :4033.40   

i want dataframe this:

min     -16.40 1st qu    0.00 median   26.40 mean     34.37 3rd qu   53.60 max    4033.40 

how can in?

like this?

var <- rnorm(100) x <- summary(var) data.frame(x=matrix(x),row.names=names(x)) ##                x ## min.    -2.68300 ## 1st qu. -0.70930 ## median  -0.09732 ## mean    -0.00809 ## 3rd qu.  0.71550 ## max.     2.58100 

Comments

Popular posts from this blog

javascript - jquery or ashx not working -

opencv - DataType<cv::detail::deriv_type>::depth what is it used for -

python 3.x - Mapping specific letters onto a list of words -