Adding files with resources to find info about R
This commit is contained in:
parent
db972ca73e
commit
ccfb522e92
5 changed files with 202 additions and 7 deletions
|
@ -1,7 +0,0 @@
|
|||
# R_info
|
||||
|
||||
Some resources to learn about R
|
||||
|
||||
The R Project for Statistical Computing is a free environment for statistical computing and graphics.
|
||||
|
||||
More information about R: https://www.r-project.org/
|
13
README.org
Normal file
13
README.org
Normal file
|
@ -0,0 +1,13 @@
|
|||
* R_info
|
||||
|
||||
Some resources to learn about R
|
||||
|
||||
The R Project for Statistical Computing is a free environment for statistical computing and graphics.
|
||||
|
||||
More information about R: https://www.r-project.org/
|
||||
|
||||
** Index
|
||||
|
||||
* [[./doc/courses_other.org][Lectures and conferences]]
|
||||
* [[./doc/resources_in_R.org][Resources to learn R within R]]
|
||||
* [[./script/help_r.R][R-script with more resources to access R documentation]]
|
50
doc/courses_other.org
Normal file
50
doc/courses_other.org
Normal file
|
@ -0,0 +1,50 @@
|
|||
* Lectures and conferences
|
||||
|
||||
** STAT 447: Data Science Programming Methods
|
||||
|
||||
* Dirk Eddelbuettel, Department of Statistics, University of Illinois, Fall 2021
|
||||
* https://stat447.com/
|
||||
|
||||
** Dirk Eddelbuettel lectures on data science
|
||||
|
||||
* https://github.com/eddelbuettel/lectures
|
||||
|
||||
** STAT 385: statistical programming methods
|
||||
|
||||
* David Dalpiaz, Linjun Huang
|
||||
* https://stat385.org/
|
||||
|
||||
** David Dalpiaz repository
|
||||
|
||||
* https://github.com/daviddalpiaz?tab=repositories
|
||||
|
||||
** stat545 UBC Lecture on data wrangling, exploration and analyses with R
|
||||
|
||||
Statitics using R at the University of British Columbia
|
||||
|
||||
* https://stat545.com
|
||||
* https://stat545.stat.ubc.ca/
|
||||
* https://github.com/rstudio-education/stat545
|
||||
|
||||
** R/pharma conference
|
||||
|
||||
* Proceedings
|
||||
* https://rinpharma.com/publication/
|
||||
|
||||
** Jenny Bryan repository
|
||||
|
||||
* https://github.com/jennybc?tab=repositories
|
||||
|
||||
** Curso visualização de dados em R :pt:
|
||||
|
||||
* http://sillasgonzaga.com/material/curso_visualizacao/
|
||||
|
||||
** *Curso introdução à linguagem R para ecologia :pt:*
|
||||
|
||||
* Alexandre Adalardo de Oliveira
|
||||
* http://ecor.ib.usp.br/doku.php
|
||||
|
||||
** Blog curso sobre R e PostgreSQL
|
||||
|
||||
* Curso Consudata
|
||||
* http://rpg.consudata.com.br/
|
26
doc/resources_in_R.org
Normal file
26
doc/resources_in_R.org
Normal file
|
@ -0,0 +1,26 @@
|
|||
* Resources to learn R within R
|
||||
|
||||
** Package swirl
|
||||
|
||||
* https://swirlstats.com/
|
||||
|
||||
** Learnr: write interactive tutorials in R
|
||||
|
||||
* https://rstudio.github.io/learnr/
|
||||
|
||||
** R documentation
|
||||
|
||||
Use the following conde in R:
|
||||
|
||||
#+begin_example R
|
||||
help.start()
|
||||
#+end_example
|
||||
|
||||
In order to check the information about a package use the function ~vignette()~ with
|
||||
the name of the package as argument:
|
||||
|
||||
#+begin_example R
|
||||
vignette(package = "data.table")
|
||||
#+end_example
|
||||
|
||||
Check the [[../script/help_r.R][script]] to see additional resources.
|
113
script/help_r.R
Normal file
113
script/help_r.R
Normal file
|
@ -0,0 +1,113 @@
|
|||
#' ---
|
||||
#' title: "Getting help in R"
|
||||
#' date: "2021-11-24"
|
||||
#' author: "Jose"
|
||||
#' output:
|
||||
#' html_document:
|
||||
#' code_folding: show
|
||||
#' toc: yes
|
||||
#' toc_float:
|
||||
#' smooth_scroll: true
|
||||
#' df_print: paged
|
||||
#' highlight: zenburn
|
||||
#' ---
|
||||
|
||||
#' remove objects
|
||||
#'
|
||||
objects()
|
||||
|
||||
rm(list = ls())
|
||||
|
||||
#' Libraries
|
||||
|
||||
#' ## Common ways of getting help when working with R
|
||||
#'
|
||||
#' Within R use the "?" question symbol before any command and run
|
||||
#'
|
||||
?dput
|
||||
|
||||
#' Use "help", "help.search" or "apropos" when need search for some terms
|
||||
#'
|
||||
|
||||
#' Ask about control-flow constructs in R
|
||||
help("if")
|
||||
|
||||
#' Information about extract or replace function
|
||||
help("[[")
|
||||
|
||||
#' Help on "Quotes"
|
||||
help(Quotes)
|
||||
|
||||
help.search("download file")
|
||||
|
||||
#' Find the formal arguments in a function
|
||||
formalArgs(help)
|
||||
|
||||
formalArgs(table)
|
||||
|
||||
#' "find" can be used to know which package contains a function
|
||||
|
||||
find("table")
|
||||
|
||||
find("count")#' this will return nothing, because the package should be loaded
|
||||
|
||||
library(dplyr)
|
||||
|
||||
#' "apropos" give the name of objects containing the characters passed to the function
|
||||
|
||||
count_testing <- c(1,2)
|
||||
|
||||
apropos("count")
|
||||
|
||||
#' ## Examples and demostration of functions
|
||||
#'
|
||||
example(glm)
|
||||
|
||||
library(lubridate)
|
||||
example(ymd)
|
||||
|
||||
example(Compare)
|
||||
|
||||
library(dplyr)
|
||||
example(case_when)
|
||||
|
||||
demo(graphics)
|
||||
|
||||
#' Use "help.start" to view all R documentation
|
||||
help.start()
|
||||
|
||||
#' ## Searching in packages
|
||||
#'
|
||||
#' Obtain help in packages
|
||||
|
||||
library(help = data.table)
|
||||
|
||||
|
||||
#' Finding objects within a package
|
||||
|
||||
library(data.table)
|
||||
|
||||
objects(grep("data.table", search()))
|
||||
|
||||
#' List vignettes in a package
|
||||
|
||||
vignette(package = "data.table")
|
||||
|
||||
browseVignettes("data.table")
|
||||
|
||||
vignette("datatable-faq")
|
||||
|
||||
#' Edit dataframe using R data editor
|
||||
#'
|
||||
|
||||
carros <- cars
|
||||
|
||||
fix(carros)
|
||||
|
||||
carros
|
||||
|
||||
#' Unload a package from the environment
|
||||
#'
|
||||
#' detach("package:data.table", unload = TRUE)
|
||||
|
||||
#' End
|
Loading…
Reference in a new issue