Variable RGroupGenericsConst
RGroupGenerics: {
Arith: readonly ["+", "-", "*", "/", "^", "**", "%%", "%/%"];
Compare: readonly ["==", "!=", "<", "<=", ">", ">="];
Complex: readonly ["Re", "Im", "Mod", "Arg", "Conj"];
Logic: readonly ["&", "|"];
Math: readonly [
"abs",
"sign",
"sqrt",
"floor",
"ceiling",
"trunc",
"exp",
"expm1",
"log",
"log2",
"log10",
"log1p",
"cos",
"sin",
"tan",
"cosh",
"sinh",
"tanh",
"acos",
"asin",
"atan",
"acosh",
"asinh",
"atanh",
"cospi",
"sinpi",
"tanpi",
"gamma",
"lgamma",
"digamma",
"trigamma",
"cumsum",
"cumprod",
"cummax",
"cummin",
];
Math2: readonly ["round", "signif"];
matrixOps: readonly ["%*%"];
Ops: readonly [
"+",
"-",
"*",
"/",
"^",
"**",
"%%",
"%/%",
"==",
"!=",
"<",
"<=",
">",
">=",
"&",
"|",
"!",
];
Summary: readonly ["any", "all", "sum", "prod", "min", "max", "range"];
} = ...
Type Declaration
-
Arith: readonly ["+", "-", "*", "/", "^", "**", "%%", "%/%"]
-
Compare: readonly ["==", "!=", "<", "<=", ">", ">="]
-
ReadonlyComplex: readonly ["Re", "Im", "Mod", "Arg", "Conj"]
-
Logic: readonly ["&", "|"]
-
ReadonlyMath: readonly [
"abs",
"sign",
"sqrt",
"floor",
"ceiling",
"trunc",
"exp",
"expm1",
"log",
"log2",
"log10",
"log1p",
"cos",
"sin",
"tan",
"cosh",
"sinh",
"tanh",
"acos",
"asin",
"atan",
"acosh",
"asinh",
"atanh",
"cospi",
"sinpi",
"tanpi",
"gamma",
"lgamma",
"digamma",
"trigamma",
"cumsum",
"cumprod",
"cummax",
"cummin",
]
-
ReadonlyMath2: readonly ["round", "signif"]
-
ReadonlymatrixOps: readonly ["%*%"]
-
ReadonlyOps: readonly [
"+",
"-",
"*",
"/",
"^",
"**",
"%%",
"%/%",
"==",
"!=",
"<",
"<=",
">",
">=",
"&",
"|",
"!",
]
-
ReadonlySummary: readonly ["any", "all", "sum", "prod", "min", "max", "range"]
R's group generics: a class claims every member of a group at once, with an
Ops.cls(S3) or asetMethod('Arith', ...)(S4), so a call to any member may dispatch to a method named after the group.Opsis what S3 calls the union of the three S4 groups it splits into.