官术网_书友最值得收藏!

Basic dplyr usage

We have already used some dplyr commands in the previous section and, here, we'll be looking at the standard functions.  dplyr provides a set of useful verbs that can be used in conjunction with one another (using the pipe operator or otherwise) to produce the final result.

These verbs are set out in the following list:

    • sample_n and sample_frac: To extract random values
    • summarise: To aggregate values
    • mutate: To add new variables
    • arrange: To sort the dataset
    • filter: To filter the data and extract relevant rows
    • Select: To select columns from the dataset

主站蜘蛛池模板: 凤阳县| 罗山县| 临湘市| 嘉荫县| 弥勒县| 凌海市| 吴堡县| 乌拉特前旗| 孟连| 汝州市| 富宁县| 筠连县| 苏尼特左旗| 台中市| 绥中县| 蒙阴县| 连州市| 罗山县| 石城县| 泰州市| 淳安县| 长春市| 遵义市| 光山县| 临沭县| 康保县| 志丹县| 邻水| 尉氏县| 太湖县| 安溪县| 泰安市| 绥芬河市| 盱眙县| 墨竹工卡县| 紫阳县| 白山市| 洱源县| 绵竹市| 钟山县| 黄大仙区|