Objects in R
This commit is contained in:
parent
79f38c85dd
commit
372a0896a5
|
@ -7,13 +7,14 @@ data using the R programming environment
|
||||||
|
|
||||||
* [[./script/help_r.org][Asking for help to use R]]
|
* [[./script/help_r.org][Asking for help to use R]]
|
||||||
* [[./doc/install_Rsource.org][Installing R from source]]
|
* [[./doc/install_Rsource.org][Installing R from source]]
|
||||||
|
* [[./doc/objects.org][Objects in R]]
|
||||||
* [[./script/integerq_modulo.R][Integer quocient and modulo]]
|
* [[./script/integerq_modulo.R][Integer quocient and modulo]]
|
||||||
* [[./script/non_stand_eval.R][Non-standard evaluation in R]]
|
* [[./script/non_stand_eval.R][Non-standard evaluation in R]]
|
||||||
|
|
||||||
** Matching patterns
|
** Matching patterns
|
||||||
|
|
||||||
* [[./doc/match.patt.org]['gsub' and 'sub']]
|
* [[./doc/match.patt.org]['gsub' and 'sub']]
|
||||||
|
|
||||||
** Subsetting and indexing
|
** Subsetting and indexing
|
||||||
|
|
||||||
* [[./script/replace_values.R][Build column in table indexing values]]
|
* [[./script/replace_values.R][Build column in table indexing values]]
|
||||||
|
|
|
@ -0,0 +1,47 @@
|
||||||
|
#+TITLE: Loading data into R
|
||||||
|
#+DATE: 2022-02-18
|
||||||
|
#+AUTHOR: José https://ajuda.multifarm.top
|
||||||
|
#+OPTIONS: num:nil toc:2
|
||||||
|
#+BIBLIOGRAPHY: ../bib/references.bib
|
||||||
|
#+PROPERTY: header-args:R :results output :session *Rl1* :cmdline :tangle yes
|
||||||
|
#+PROPERTY: header-args:R+ :exports both
|
||||||
|
|
||||||
|
** Objects in R
|
||||||
|
|
||||||
|
#+begin_quote
|
||||||
|
|
||||||
|
Everything in R is an object; that is, a dynamically created, self-
|
||||||
|
describing container for data.
|
||||||
|
|
||||||
|
Everything that "happens" is a function, i.e, and object that contais
|
||||||
|
another objects (arguments). The fundamental computation in
|
||||||
|
R is a function call.
|
||||||
|
|
||||||
|
Objects are, almost always, created by assiging a name in an environment:
|
||||||
|
|
||||||
|
#+end_quote
|
||||||
|
|
||||||
|
[cite:@chambers2008software]
|
||||||
|
|
||||||
|
Creating an object
|
||||||
|
|
||||||
|
#+begin_src R
|
||||||
|
object1 = c(1:5)
|
||||||
|
#+end_src
|
||||||
|
|
||||||
|
Visualizing the object
|
||||||
|
|
||||||
|
#+begin_src R
|
||||||
|
object1
|
||||||
|
#+end_src
|
||||||
|
|
||||||
|
** Three objects that are different from other 'common' objects in R
|
||||||
|
|
||||||
|
- Connections
|
||||||
|
- Environments
|
||||||
|
- External pointers
|
||||||
|
|
||||||
|
|
||||||
|
** References
|
||||||
|
|
||||||
|
#+print_bibliography:
|
Loading…
Reference in New Issue