摘要:
mtcars是R Studio自带的数据集datasets里包含的,可以直接使用或datasets::iris这样引用.library(help = "datasets")可以看到详细的数据集列表. > mtcars %>% head() mpg cyl disp hp drat wt qsec v 阅读全文
posted @ 2020-12-31 17:11
船长博客
阅读(607)
评论(0)
推荐(0)
摘要:
iris是R Studio自带的数据集datasets里包含的,可以直接使用或datasets::iris这样引用.library(help = "datasets")可以看到详细的数据集列表. > # 默认升序 > iris %>% arrange(Sepal.Length) %>% head() 阅读全文
posted @ 2020-12-31 17:08
船长博客
阅读(290)
评论(0)
推荐(0)
摘要:
library(dplyr) df <- tibble::tibble( x = sample(10, 100, rep = TRUE), y = sample(10, 100, rep = TRUE) ) df # 以全部列去重 distinct(df) # 以列x去重,仅返回去重后的x列 dis 阅读全文
posted @ 2020-12-31 17:03
船长博客
阅读(2828)
评论(0)
推荐(1)
摘要:
library(datasets) summary(iris) ## Sepal.Length Sepal.Width Petal.Length Petal.Width ## Min. :4.300 Min. :2.000 Min. :1.000 Min. :0.100 ## 1st Qu.:5.1 阅读全文
posted @ 2020-12-31 13:43
船长博客
阅读(2569)
评论(0)
推荐(0)
浙公网安备 33010602011771号