Загрузка страницы

Data frames in R - Transforming data PART II

👉🏻 Download Our Free Data Science Career Guide: https://bit.ly/3aBKQe8
👉🏻 Sign up for Our Complete Data Science Training with 57% OFF: https://bit.ly/2CJp63I

How to arrange, summarize, group, and sample data in R using the dplyr package.

To arrange your data frame, use the arrange() function from the dplyr package. Nest the desc command to specify that you want your data frame arranged in descending order.

Let’s talk about grouping a data frame and then summarizing it. What does that mean? It means we will take our data, split it in groups, and then, get collapse all the variables for these groups into one row of whatever type of information we want.

By itself, the summarize() function summarizes a data frame in a single result.

Group_by() is fairly intuitive. It splits the data frame into individual groups. Then, whatever functions we call to the grouped data frame, they will be executed per group.

The group_by() – summarize() combination is one of the most widely used operations in the preliminary stages of data analysis.

Sample_n extracts a random sample of a fixed number of rows from your data frame, whereas sample_frac extracts a fixed fraction.

► Consider hitting the SUBSCRIBE button if you LIKE the content: https://www.youtube.com/c/365DataScience?sub_confirmation=1

► VISIT our website: https://bit.ly/365ds

🤝 Connect with us LinkedIn: https://www.linkedin.com/company/365datascience/

365 Data Science is an online educational career website that offers the incredible opportunity to find your way into the data science world no matter your previous knowledge and experience. We have prepared numerous courses that suit the needs of aspiring BI analysts, Data analysts and Data scientists.

We at 365 Data Science are committed educators who believe that curiosity should not be hindered by inability to access good learning resources. This is why we focus all our efforts on creating high-quality educational content which anyone can access online.

Check out our Data Science Career guides: https://www.youtube.com/playlist?list=PLaFfQroTgZnyQFq4nUfb-w2vEopN3ULMb

#RProgramming #DataScience #Data

Видео Data frames in R - Transforming data PART II канала 365 Data Science
Показать
Комментарии отсутствуют
Введите заголовок:

Введите адрес ссылки:

Введите адрес видео с YouTube:

Зарегистрируйтесь или войдите с
Информация о видео
27 апреля 2018 г. 17:27:41
00:03:32
Яндекс.Метрика