R/save.cm.R

Defines functions save.cm

Documented in save.cm

# save.cm: validates and saves a Community Matrix
# It takes:
#   CM: a potential Community Matrix
#   file: a valid filename with path
# Author: Alexis Dinno
# Date: September 28, 2026

save.cm <- function(CM, file = rlang::abort("'file' must be specified")) {

	validate.cm(CM)
	save(CM, file = file, ascii = FALSE, compress = TRUE)
		
	# end Save.CM()
	}

Try the LoopAnalyst package in your browser

Any scripts or data that you put into this service are public.

LoopAnalyst documentation built on Oct. 5, 2026, 1:07 a.m.