![]() ![]() If we want to plot the subset of the first 100 observations of cdc, based on the height and weight of the people. Using one of these functions you can visualize any data in R. R has several functions like plot() for plotting the available data. For eg: a subset where the gender of the person is male or ‘m’. The second parameter is a condition, the entries satisfying the condition are included in the subset. The function takes two arguments or parameters. To run a query on the dataset, you can use the subset() function. ![]() To access a specific element from the dataset > cdc ![]() To access a specific column from the dataset, for eg: height > cdc$height There are many commands in R and RStudio that can manipulate and transform the data in the desired ways. The dataset will be imported into the RStudio and will be assigned to the variable name as set earlier.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |