read.series.seq: Reads a series of sequences.

Description Usage Arguments Details Value Author(s) See Also Examples

Description

Input from a text file of a series of behavioral (or any other type) sequences. Builds an object of class sequence

Usage

1

Arguments

fich

character: name of the text file to read

Details

The text file must have one line by sequence. Each line must begin by a character identifier of the sequence, followed by a tab character or a space, followed by the series of item codes, separated also by tabs or spaces. example:

A1 A B A C D A B C
A2 A D D C A B
A3 B D C A D A B C
A4 C B C A
A5 C D A B C

Value

An object of class sequence

Author(s)

Jean-Sebastien Pierre
Jean-sebastien.pierre@univ-rennes1.fr

See Also

compseq

Examples

1
2
3
4
5
6
7
8
9
sink("series-seq")
cat("A1 A B A C D A B C\n")
cat("A2 A D D C A B\n")
cat("A3 B D C A D A B C\n")
cat("A4 C B C A\n")
cat("A5 C D A B C\n")
sink()
read.series.seq("series-seq")
file.remove("series-seq")

sequence documentation built on March 26, 2020, 7:30 p.m.