R语言tidyverse

tidyverse library把data.frame拓展tibble、读取数据readr、清洗数据tidyr、文本处理stringr、加工数据dplyr、画图ggplot2等library打包在一起。读取数据readxl、时间处理lubridate另外加载。

The goal of tidyr is to help you create tidy data.宽表变长表,分列,填充缺失值,替换缺失值。

The readxl package makes it easy to get data out of Excel and into R.如果是csv格式,用UTF-8编码。

dplyr is a grammar of data manipulation, providing a consistent set of verbs that help you solve the most common data manipulation challenges.选择、筛选、排序,分组统计,各种join。

The stringr package provide a cohesive set of functions designed to make working with strings as easy as possible.

学习R语言,其一从base入手,基础扎实,六个月可以干活,其二从tidyverse入手,效率高,四个月可以干活。

相关推荐