Learn R Programming

m2r (version 1.0.3)

m2_parser: Convert a M2 object into an R object

Description

Convert a M2 object into an R object

Usage

m2_parse(s)

# S3 method for default m2_parse_class(x)

# S3 method for m2_hashtable m2_parse_class(x)

# S3 method for m2_optiontable m2_parse_class(x)

# S3 method for m2_verticallist m2_parse_class(x)

# S3 method for default m2_parse_function(x)

# S3 method for m2_hashtable m2_parse_function(x)

# S3 method for m2_optiontable m2_parse_function(x)

# S3 method for m2_verticallist m2_parse_function(x)

# S3 method for m2_symbol m2_parse_function(x)

# S3 method for m2_monoid m2_parse_function(x)

# S3 method for m2_tocc m2_parse_function(x)

# S3 method for default m2_parse_object_as_function(x, params)

# S3 method for m2_symbol m2_parse_object_as_function(x, params)

# S3 method for m2_integer print(x, ...)

# S3 method for m2_float print(x, ...)

# S3 method for m2_complex print(x, ...)

# S3 method for m2_string print(x, ...)

# S3 method for m2_boolean print(x, ...)

# S3 method for m2_list print(x, ...)

# S3 method for m2_array print(x, ...)

# S3 method for m2_sequence print(x, ...)

# S3 method for m2_symbol print(x, ...)

# S3 method for m2_option print(x, ...)

# S3 method for m2_hashtable print(x, ...)

# S3 method for m2_module print(x, ...)

m2_toggle_gmp()

get_m2_gmp()

Value

an R object

Arguments

s

a character(1), typically the result of running toExternalString on an M2 object

x

an object to be printed

params

e.g. [x,y,z] or [x..z]

...

...

References

D. Kahle, C. O'Neill, and J. Sommars (2020). "A Computer Algebra System for R: Macaulay2 and the m2r Package." Journal of Statistical Software, 93(9):1-31.