Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

How to use the basic functions in the tidyr package

Shulou Source: shulou.com Published: 2022-06-01 04:52:29 09月26日 Update

This article mainly introduces "how to use the basic functions in the tidyr package". In the daily operation, I believe that many people have doubts about how to use the basic functions in the tidyr package. The editor consulted all kinds of materials and sorted out simple and easy-to-use methods of operation. I hope it will be helpful for you to answer the doubts about how to use the basic functions in the tidyr package. Next, please follow the editor to study!

Long data means that an observation object can consist of multiple rows, while wide data means that an observation consists of only one row.

# load the required R package

Library (dplyr)

Library (tidyr)

# Test dataset

Widedata

Tags: Data functions variables missing learning delimiters functions more examples help observation utility next one line three two median in between advantage location Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Xiaomi Docker Shulou Information Linux Apple