發表文章

目前顯示的是有「summarise」標籤的文章

R: Using dplyr summarise_all

R: dplyr summarise_all R: dplyr summarise_all Peter Lin 2018/4/6 Using summarise_all in dplyr package summarise vs summarise_all first: let’s random look at the data library(dplyr) ## ## Attaching package: 'dplyr' ## The following objects are masked from 'package:stats': ## ## filter, lag ## The following objects are masked from 'package:base': ## ## intersect, setdiff, setequal, union iris[sample(1:nrow(iris),10),] ## Sepal.Length Sepal.Width Petal.Length Petal.Width Species ## 50 5.0 3.3 1.4 0.2 setosa ## 138 6.4 3.1 5.5 1.8 virginica ## 83 5.8 2.7 3.9 1.2 versicolor ## 23 4.6 3.6 1.0 0.2 setosa ## 54 5.5 2.3 4.0 1.3 versicolor ## 97 5.7 2.9 4.2 1.3 ve...