write.digram: Write DIGRAM Object

View source: R/read.digram.R

write.digramR Documentation

Write DIGRAM Object

Description

Writes a RDigram object to DIGRAM files.

Usage

write.digram(do = NULL, path = "", filename = do$project)

Arguments

do

The digram.object

path

Path to where to save the files

filename

Optional. Set to project name if not set.

Details

DIGRAM is a Windows based program. Therefore it expects CRLF (\r\n) newlines. If you edit the files in Linux after export, your might need to take care to keep the CRLF newlines.

DIGRAM doesn't accept labels with more than one character. Therefore two-character labels are converted starting from AA->a. Labels from BA are special characters, starting from BA->ü. DIGRAM might not like RDigram's choice of characters.

DIGRAM doesn't accept more than 58 categories. Therefore variables with more than 58 categories are re-coded to include only 58 categories.

Value

Returns nothing

Author(s)

Jeppe Bundsgaard jebu@edu.au.dk

References

Kreiner, S. (2003). Introduction to DIGRAM. Dept. of Biostatistics, University of Copenhagen.

Examples

write.digram(do = DHP,path = "DHP")

jeppebundsgaard/RDigram documentation built on Oct. 29, 2023, 7:15 p.m.