Package: frab 0.0-6
frab: How to Add Two R Tables
Methods to "add" two R tables; also an alternative interpretation of named vectors as generalized R tables, so that c(a=1,b=2,c=3) + c(b=3,a=-1) will return c(b=5,c=3). Uses 'disordR' discipline (Hankin, 2022, <doi:10.48550/arXiv.2210.03856>). Extraction and replacement methods are provided. The underlying mathematical structure is the Free Abelian group, hence the name. To cite in publications please use Hankin (2023) <doi:10.48550/arXiv.2307.13184>.
Authors:
frab_0.0-6.tar.gz
frab_0.0-6.tar.gz(r-4.5-noble)frab_0.0-6.tar.gz(r-4.4-noble)
frab_0.0-6.tgz(r-4.4-emscripten)frab_0.0-6.tgz(r-4.3-emscripten)
frab.pdf |frab.html✨
frab/json (API)
NEWS
# Install 'frab' in R: |
install.packages('frab', repos = c('https://cran.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/robinhankin/frab/issues
Last updated 2 months agofrom:ce773176f1. Checks:OK: 2. Indexed: no.
Target | Result | Date |
---|---|---|
Doc / Vignettes | OK | Aug 24 2024 |
R-4.5-linux-x86_64 | OK | Aug 24 2024 |
Exports:arityarray_to_sparsetableas.arrayas.data.frameas.frabas.namedvectoras.sparsetableas.tableasumasum_exclude_sparsetableasum_sparsetablec_frab_addc_frab_eqc_frab_identityc_frab_multiplyc_frab_pmaxdf_to_frabdropfrabfrab_arith_frabfrab_arith_numericfrab_compare_frabfrab_compare_numericfrab_eqfrab_eq_numfrab_ge_numfrab_gt_numfrab_le_numfrab_lt_numfrab_multiply_frabfrab_multiply_numericfrab_ne_numfrab_negativefrab_plus_frabfrab_plus_numericfrab_power_numericfrab_printfrab_reciprocalfrab_unaryindexis.1dtableis.emptyis.frabis.na<-is.namedlogicalis.namedvectoris.notnais.sparsetableis.unnamedlogicalis.unnamedvectoris.zerolist_to_frabnamedvectorntermsnum_eq_frabnum_eq_sparsetablenum_ge_frabnum_ge_sparsetablenum_gt_frabnum_gt_sparsetablenum_le_frabnum_le_sparsetablenum_lt_frabnum_lt_sparsetablenum_ne_frabnumeric_arith_frabnumeric_arith_sparsetablenumeric_compare_frabnumeric_compare_sparsetablenumeric_multiply_sparsetablenumeric_power_frabnumeric_power_sparsetablepmaxpmax_dotspmax_dots_sparsetablepmax_pairpmax_pair_sparsetablepminpmin_dotspmin_dots_sparsetablepmin_pairpmin_pair_sparsetableprint_sparsetable_matrixformrfrabrfrabbrfrabbbrsparrspar2rsparrsortsparsetablesparsetable_accessorsparsetable_addsparsetable_arith_numericsparsetable_arith_sparsetablesparsetable_asum_includesparsetable_compare_numericsparsetable_compare_sparsetablesparsetable_eq_numsparsetable_eq_sparsetablesparsetable_equalitysparsetable_ge_numsparsetable_gt_numsparsetable_le_numsparsetable_lt_numsparsetable_makersparsetable_multiply_numericsparsetable_multiply_sparsetablesparsetable_negativesparsetable_overwritesparsetable_plus_sparsetablesparsetable_pmaxsparsetable_power_numericsparsetable_reciprocalsparsetable_settersparsetable_to_arraysparsetable_to_frabsparsetable_unarytable_to_frabvaluesvalues<-whichzero
Readme and manuals
Help Manual
Help page | Topics |
---|---|
How to Add Two R Tables | frab-package |
Arithmetic methods for class '"frab"' | arith Arith,ANY,frab-method Arith,frab,ANY-method Arith,frab,frab-method Arith,frab,missing-method Arith,frab,numeric-method c_frab_add c_frab_identity c_frab_multiply c_frab_pmax frab_arith_frab frab_arith_numeric frab_multiply_frab frab_multiply_numeric frab_negative frab_plus_frab frab_plus_numeric frab_power_numeric frab_reciprocal frab_unary numeric_arith_frab numeric_multiply_frab numeric_power_frab |
Comparison methods | Compare Compare,frab,frab-method Compare,frab,numeric-method Compare,numeric,frab-method Compare-methods c_frab_eq frab_compare_frab frab_compare_numeric frab_eq frab_eq_num frab_ge_num frab_gt_num frab_le_num frab_lt_num frab_ne_num numeric_compare_frab num_eq_frab num_ge_frab num_gt_frab num_le_frab num_lt_frab num_ne_frab |
Coerce a data frame to a frab | as.data.frame as.data.frame,frab-method as.frab,data.frame-method data.frame dataframe df_to_frab |
Extraction and replacement methods for class '"frab"' | extract names names,frab-method names<-,frab,character-method names<-,frab,disord-method values values,frab-method values<- values<-,frab,disord-method values<-,frab,numeric-method [ [,ANY,frab,ANY-method [,frab,ANY,ANY-method [,frab,ANY,missing,ANY-method [,frab,character,missing,ANY-method [,frab,character,missing-method [,frab,disindex,missing,ANY-method [,frab,disord,missing,ANY-method [,frab,disord,missing-method [,frab,frab,missing,ANY-method [,frab,frab,missing-method [,frab,missing,index-method [,frab,missing,missing,ANY-method [,frab,missing,missing-method [,frab-method [.frab [<- [<-,frab,ANY,ANY,ANY-method [<-,frab,character,missing,logical-method [<-,frab,character,missing,numeric-method [<-,frab,character,missing-method [<-,frab,disindex,missing,numeric,ANY-method [<-,frab,disindex,missing,numeric-method [<-,frab,disord,missing,frab-method [<-,frab,disord,missing,logical-method [<-,frab,disord,missing,numeric-method [<-,frab,disord,missing-method [<-,frab,missing,missing,ANY-method [<-,frab,missing,missing,frab-method [<-,frab,missing,missing,numeric-method |
Creating 'frab' objects | as.frab frab is.frab list_to_frab |
Class "frab" | frab-class namedvector namedvector,frab-method |
Miscellaneous functions | !,frab-method is.na is.na,frab-method is.na.frab is.na<- is.na<-,frab,disord-method is.na<-.frab is.notna is.notna,frab-method is.notna.frab lapply lapply,disord-method lapply.disord length length,frab-method length.frab misc which,disindex-method which,frab-method |
Named vectors and the frab package | as.namedvector is.namedlogical is.namedvector is.unnamedlogical is.unnamedvector |
Parallel maxima and minima for frabs | pmax pmax,ANY-method pmax,frab-method pmax.frab pmax_dots pmax_pair pmin pmin,ANY-method pmin,frab-method pmin.frab pmin_dots pmin_pair |
Methods for printing frabs | frab_print print print.frab show,frab-method |
Random frabs | rfrab rfrabb rfrabbb |
Generalized sparse tables: 'sparsetable' objects | arity arity,sparsetable-method array_to_sparsetable as.array,sparsetable-method as.sparsetable asum asum,sparsetable-method asum.sparsetable asum_exclude_sparsetable asum_sparsetable dim dim,sparsetable-method dimnames,sparsetable-method dimnames<-,sparsetable,ANY-method dimnames<-,sparsetable-method drop drop,sparsetable-method index index,sparsetable-method is.empty,sparsetable-method is.sparsetable names,sparsetable-method nterms nterms,sparsetable-method numeric_arith_sparsetable numeric_compare_sparsetable numeric_multiply_sparsetable numeric_power_sparsetable num_eq_sparsetable num_ge_sparsetable num_gt_sparsetable num_le_sparsetable num_lt_sparsetable pmax,sparsetable-method pmax.sparsetable pmax_dots_sparsetable pmax_pair_sparsetable pmax_sparsetable pmin,sparsetable-method pmin.sparsetable pmin_dots_sparsetable pmin_pair_sparsetable pmin_sparsetable print_sparsetable_matrixform rspar rspar2 rsparr show,sparsetable-method sparsetable sparsetable-class sparsetable_accessor sparsetable_add sparsetable_arith_numeric sparsetable_arith_sparsetable sparsetable_asum_exclude sparsetable_asum_include sparsetable_compare_numeric sparsetable_compare_sparsetable sparsetable_eq sparsetable_equality sparsetable_eq_num sparsetable_eq_sparsetable sparsetable_ge_num sparsetable_gt_num sparsetable_le_num sparsetable_lt_num sparsetable_maker sparsetable_multiply_numeric sparsetable_multiply_sparsetable sparsetable_negative sparsetable_overwrite sparsetable_plus_sparsetable sparsetable_pmax sparsetable_pmin sparsetable_power_numeric sparsetable_reciprocal sparsetable_setter sparsetable_times_scalar sparsetable_to_array sparsetable_to_frab sparsetable_to_table sparsetable_unary table_to_sparsetable values,sparsetable-method [,sparsetable,ANY,ANY,ANY-method [,sparsetable,disindex,missing,ANY-method [,sparsetable,disord,missing,ANY-method [,sparsetable,disord,missing-method [,sparsetable-method [<-,sparsetable,ANY,ANY,ANY-method [<-,sparsetable,disindex,missing,ANY-method [<-,sparsetable,disord,missing,numeric-method [<-,sparsetable-method |
Methods for Function 'Summary' | Summary,frab-method Summary-methods |
Tables and frab objects | as.table as.table,frab-method is.1dtable table table_to_frab |
The zero frab object | empty is.empty is.zero zero |