Just think how much better it would be if you could narrow down from 100,000 observations to 2,000 observations of interest? ![]() It is often the case, when importing data into R, that our dataset will have a lot of observations on all kinds of objects.Įach of these observations belongs to some group, and for the vast majority of projects we will be interested in analyzing a particular group or find group-specific metrics.Įven to do simple descriptive statistics for variables that belong to a certain group, we will need to filter the dataset in R.įiltering the dataset by a specific value of interest is a very useful skill to have as it narrows down the observations and potentially eases up the other statistics commands you will run in R. ![]() ![]() In this article we will learn how to filter a data frame by a value in a column in R using filter() command from dplyr package.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |