Macaulay2
»
Documentation
Packages
»
RInterface
::
Table of Contents
next | previous | forward | backward | up |
index
|
toc
RInterface : Table of Contents
RInterface
-- interface to R for statistical computing
RObject
-- R object
new RObject from Boolean
-- create an R logical vector from a Boolean
new RObject from CC
-- create an R complex vector from a complex number
new RObject from HashTable
-- create an R environment from a hash table
new RObject from List
-- create an R vector from a list
new RObject from Matrix
-- create an R matrix from a Macaulay2 matrix
new RObject from Nothing
-- create an R NULL object
new RObject from RR
-- create an R double vector from a real or rational number
new RObject from Sequence
-- create an R pairlist from a sequence
new RObject from String
-- create an R character vector from a string
new RObject from Symbol
-- create an R character vector from a symbol
new RObject from ZZ
-- create an R integer vector from an integer
NA
-- missing value
value(RObject)
-- convert R object to Macaulay2
RObject _ Thing
-- extract a single element of an R object
RObject _ Thing = Thing
-- replace a single element of an R object
RObject Array
-- extract multiple elements of an R object
RObject SPACE Array = Thing
-- replace multiple elements of an R object
iterator(RObject)
-- iterate through an R object
length(RObject)
-- the length of an R object
RObject + RObject
-- add R objects
RObject - RObject
-- subtract R objects
RObject * RObject
-- multiply R objects
RObject / RObject
-- divide R objects
RObject ^ RObject
-- exponentiation of R objects
RObject % RObject
-- modulo of R objects
RObject // RObject
-- floor division of R objects
RObject : RObject
-- R colon operator
RObject == RObject
-- equality of R objects
RObject ? RObject
-- comparison of R objects
not RObject
-- logical negation of an R object
RObject and RObject
-- logical conjunction of R objects
RObject or RObject
-- logical disjunction of R objects
RObject xor RObject
-- logical exclusive disjunction of R objects
~ RObject
-- bitwise NOT of an R object, or create a one-sided formula
RObject & RObject
-- bitwise AND of R objects
RObject | RObject
-- bitwise OR of R objects
RObject ^^ RObject
-- bitwise XOR of R objects
RObject << RObject
-- bitwise left shift of an R object
RObject >> RObject
-- bitwise right shift of an R object
ceiling(RObject)
-- ceiling of an R object
floor(RObject)
-- floor of an R object
truncate(RObject)
-- truncation of an R object
round(RObject,RObject)
-- rounding of an R object
max(RObject)
-- maximum of an R object
min(RObject)
-- minimum of an R object
sum(RObject)
-- sum of elements of an R object
product(RObject)
-- product of elements of an R object
abs(RObject)
-- absolute value of an R object
sqrt(RObject)
-- square root of an R object
exp(RObject)
-- exponential of an R object
expm1(RObject)
-- exponential minus 1 of an R object
log(RObject)
-- natural logarithm of an R object
log1p(RObject)
-- natural logarithm of 1 plus an R object
acos(RObject)
-- arccosine of an R object
asin(RObject)
-- arcsine of an R object
atan(RObject)
-- arctangent of an R object
atan2(RObject,RObject)
-- two-argument arctangent of R objects
cos(RObject)
-- cosine of an R object
sin(RObject)
-- sine of an R object
tan(RObject)
-- tangent of an R object
acosh(RObject)
-- hyperbolic arccosine of an R object
asinh(RObject)
-- hyperbolic arcsine of an R object
atanh(RObject)
-- hyperbolic arctangent of an R object
cosh(RObject)
-- hyperbolic cosine of an R object
sinh(RObject)
-- hyperbolic sine of an R object
tanh(RObject)
-- hyperbolic tangent of an R object
conjugate(RObject)
-- complex conjugate of an R object
imaginaryPart(RObject)
-- imaginary part of an R object
realPart(RObject)
-- real part of an R object
Beta(RObject,RObject)
-- beta function of R objects
Digamma(RObject)
-- digamma function of an R object
Gamma(RObject)
-- gamma function of an R object
lngamma(RObject)
-- log-gamma function of an R object
binomial(RObject,RObject)
-- binomial coefficient of R objects
RObject !
-- factorial of an R object
RObject ~ RObject
-- create a two-sided R formula
RFunction
-- R function
library
-- load an R package
RContext
-- R context
new RContext from String
-- construct an R context
RContext String
-- evaluate R code in a context
RContext _ String
-- get a variable from an R context
listSymbols(RObject)
-- list symbols in an R environment
use(RContext)
-- import R context variables into Macaulay2
RSymbol
-- look up an R object by name
RQuote
-- create an unevaluated R symbol
RValue
-- evaluate R code