write {glmulti}R Documentation

Writing glmulti objects

Description

The S4 method provided for glmulti objects writes a glmulti object as a data.frame, or alternatively as a raw R object.

Usage

write(x, file = "data", ncolumns = if (is.character(x)) 1 else 5,
		append = FALSE, sep = " ")

Arguments

x

An object of class glmulti

file

The name of the file to write into. If missing, the name is taken to be the name of the glmulti object.* If "\object" is at the end of the filename, then the object is written as a raw R object using saveRDS.

ncolumns

Not used with glmulti objects

append

Whether to append the output to the file, if existing.

sep

The character to be used to separate columns.

Details

When using "\object", the file written can be read directly from R using readRDS, or with consensus.

Value

A data.frame. Rows correspond to all models, sorted from best to worse.. The first columns indicate whether the different terms are found in the formula of each model (0/1). The next columns contain model complexity (K), model IC, and model formula (as a character string).

Author(s)

Vincent Calcagno, McGill University

See Also

glmulti, consensus


[Package glmulti version 1.0.8 Index]