Description Details Naming conventions Additional Information Author(s) Examples
The main idea was to provide some convenient functions to avoid some disturbing points when programming with R. Perhaps the most striking example is when you need to make an action on each component of an object and use some loop like for (i in 1:length(object)){...} since later or former the loop will be used with an object of length zero... The rbsa package gives access to
logical looping with bc, bd and bf.
simply building a list from a simply tagged text file; very convenient to parameterize jobs (see read8list).
checking objects and error displaying (object9 and erreur).
pausing to look at intermediate results (pause).
opening and closing of text/graph files (open8text, close8text, open8graph and close8graph).
analyze and handle character vectors seen as text files.
and more facilities of this kind.
It is worth knowing that rbsa has got a series of constants that can be modified by the user:
especially the component rbsa0$monitor to monitor the behaviour of some functions. It can be scrutinized by calling display8k(rbsa0$monitor$v).
The name of rbsa comes from rbsb with last letter
changed from 'b' to 'a' to indicate that it is only the basic part of
rbsb. The denomination of rbsb was a shortcut of
rebastaba to indicate that it was the set of auxiliary functions
of the package. rebastaba was standing for the
French expression of R\'eseaux Bay\'esiens pour la Statistique
Bay\'esienne
, a finally abandonned project.
After reading the documentation, the best way to get details is first to try the functions, second to look at their code in the files *.code.r which are stored in the directory inst. Most of the time the programming is quite straightforward and always commented.
The object denomination follows optional rules defined for documair, a package to build package tar.gz files. The main idea is to concatenate keywords with digits, loading the digits with some operating meaning.
[0] to designate a variable object (predefined constants).
[1] to concatenate two objects (similar to the use of and
).
[2] to indicate a one-to-one transformation.
[3] to mean a component of a series.
[4] equivalent to from
(and not for
).
[5] <not used for the moment>.
[6] equivalent to with
.
[7] to replace an hyphen
.
[8] to link a verb and a noun.
[9] equivalent to a question mark (?).
More explanations are given in documair presentation.
This package was built with /documair/ package (version 0.6-0) on 14_09_15
There are 74 object(s) in total. 66 are exported and there exist 8 masked object(s): explore8list, expr3extract, extract4list, form3normalize, form3titre, get8comp7list, text3interval, text3places8brackets.
They were provided through 16 code file(s).
There were also 10 test file(s).
Jean-Baptiste Denis (MIAj - Inra - Jouy-en-Josas).
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
library(rbsa)
for (ii in bf(letters)) {
cat(ii,letters[ii],"|",sep="")
}
cat("Look at the result\n");
cat("Try the interactive command:",
" \"pause('To end the process'",
",top=c('yes','oui','si'))\"\n");
open8text(FALSE);
cat(letters,"\n");
close8text();
cat(bc(4),"\n");
open8text(FALSE);
cat(LETTERS,"\n");
close8text();
cat("Look at the newly created text file\n");
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.