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

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

主站蜘蛛池模板: 芜湖市| 五华县| 禹州市| 孙吴县| 永丰县| 云浮市| 邵武市| 嘉禾县| 当涂县| 河西区| 承德市| 萨迦县| 金溪县| 方正县| 额敏县| 高台县| 廉江市| 凤庆县| 邹平县| 山西省| 白玉县| 克什克腾旗| 沭阳县| 桂林市| 肥乡县| 太和县| 德阳市| 乳源| 鸡西市| 静安区| 临武县| 葵青区| 陆河县| 信宜市| 安仁县| 湖南省| 石狮市| 泸溪县| 新宁县| 宣威市| 札达县|