Here, we’ve installed the readr R package used for reading data from the files of different types: comma-separated values (CSV), tab-separated values (TSV), fixed-width files, etc. Make sure that the name of the package is in quotation marks. We can use the same function to install several R packages at once. INSTALL CRAN R EGCM PACKAGE IN RSTUDIO FOR MAC INSTALL In this case, we need to apply first the c() function to create a character vector containing all the desired packages as its items: install.packages(c('readr', 'ggplot2', 'tidyr'))Ībove, we’ve installed three R packages: the already-familiar readr, ggplot2 (for data visualization), and tidyr (for data cleaning). If we’re unsure which R module to use for a certain data science task, we can visit the CRAN Task Views page. Here, we find a convenient list of task categories (topics) and a brief description of each. Selecting the necessary topic, we’ll open the page with all the R packages relevant to that category, as well as an exhaustive description of usage for each of them. In both examples above, we passed in only one argument to the install.packages() function, which is actually the value of the pkgs parameter.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |