diff --git a/README.org b/README.org index d64eaf5..9e7b1dd 100755 --- a/README.org +++ b/README.org @@ -7,13 +7,14 @@ data using the R programming environment * [[./script/help_r.org][Asking for help to use R]] * [[./doc/install_Rsource.org][Installing R from source]] + * [[./doc/objects.org][Objects in R]] * [[./script/integerq_modulo.R][Integer quocient and modulo]] * [[./script/non_stand_eval.R][Non-standard evaluation in R]] ** Matching patterns * [[./doc/match.patt.org]['gsub' and 'sub']] - + ** Subsetting and indexing * [[./script/replace_values.R][Build column in table indexing values]] diff --git a/doc/objects.org b/doc/objects.org new file mode 100755 index 0000000..038b0c3 --- /dev/null +++ b/doc/objects.org @@ -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: