group_by is used when you want to group your dataset by a specific column.
Go to R studio and try the following commands.
View(mtcars) # this command will give you an overview of the mtcars dataset. You will notice that the first column(mpg) is not organized.
Now try using,
group_by(mtcars,mpg) # You will notice that all similar values have been grouped together.
Go to R studio and try the following commands.
View(mtcars) # this command will give you an overview of the mtcars dataset. You will notice that the first column(mpg) is not organized.
Now try using,
group_by(mtcars,mpg) # You will notice that all similar values have been grouped together.
No comments:
Post a Comment