Learn R Programming

sequence (version 2.0)

read.old.seq: Function to read the deprecated files *.SEQ

Description

Used to recover the sequence files used in a former DOS version of the program.

Usage

read.old.seq(file = "NULL")

Arguments

file

Fichier texte a lire

Value

An object de classe sequence, i.e. a list of lists.

Details

Only used for compatibility with the old format *.SEQ of program graflux: Items coded by at most 4 characters, One code per line. The separator of sequences is a code of 4 characters beginning by %. Example:

%001 AAAA BBBB EEEE DDDD AAAA FFFF CCCC FFFF %002 FFFF BBBB CCCC ....

References

Pierre, J. S. and C. Kasper (1990). The Design of Ethological Flow-Charts on Factorial Analysis Representations - an Application to the Study of the Male Mole-Cricket Sexual Courtship. Biology of Behaviour 15(3-4): 125-151.(in french) Van der Heijden, P. G. M. 1986. Transition matrices, model fitting and correspondence analysis. In: Data Analysis and Informatics IV (Ed. by E. Diday), pp. 221-226. Elsevier Science Publishers.

See Also

read.series.seq for a more convenient format, compseq for the analysis

Examples

Run this code
# NOT RUN {
sink("old-seq")
cat("%001\n")
cat("aaa\n")
cat("bbb\n")
cat("aaa\n")
cat("ccc\n")
cat("%002\n")
cat("ccc\n")
cat("ccc\n")
cat("aaa\n")
cat("aaa\n")
cat("bbb\n")
sink()
seq1<-read.old.seq("old-seq")
seq1
file.remove("old-seq")
# }

Run the code above in your browser using DataLab