-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathstrings.Rd
More file actions
72 lines (70 loc) · 2.03 KB
/
strings.Rd
File metadata and controls
72 lines (70 loc) · 2.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
\name{strings}
\alias{strings}
\title{
Strings of Relations
}
\description{
Function to get the labels of the unique relations of the semigroup, or the generators and compound relations that are the elements of the complete semigroup.
}
\usage{
strings(x, equat = FALSE, k = 2, smpl, valued)
}
\arguments{
\item{x}{
an array; usually with three dimensions of stacked matrices where the multiple relations are placed.
}
\item{equat}{
(logical) should the equations be included in the output?
}
\item{k}{
length of the strings in the equations
}
\item{smpl}{
(optional and logical) whether to simplify or not the string relations
}
\item{valued}{
(logical) whether the strings are with a valued format
}
}
\details{
The strings are the unique relations, which constitute the elements of the complete semigroup.
These are both the generators and the compound relations after applying the Axiom of Quality, which means that even some generators can be disregarded.
This function is especially useful to construct the partial order of relations and to establish the set of equations in the relational structure.
}
\value{
An object of \sQuote{\code{Strings}} class.
\item{wt}{
the generators and compound relations
}
\item{ord}{
the order of the structure
}
\item{st}{
the labels of the unique relations
}
\item{equat}{
the equations among strings of relations
}
}
\references{
Boorman, S.A. and H.C. White, \dQuote{Social Structure from Multiple Networks. II. Role Structures.} \emph{American Journal of Sociology}, 81 (6), 1384-1446. 1976.
}
\author{
Antonio Rivero Ostoic
}
\note{
The maximum length of the strings in the equations is currently \eqn{4}.
}
%
\seealso{
\code{\link{partial.order}}, \code{\link{semigroup}}.
}
\examples{
# create the data: two binary relations among three elements
arr <- round( replace( array(runif(18), c(3,3,2)), array(runif(18),
c(3,3,2))>.5, 1 ) )
# get the strings
strings(arr)
}
\keyword{algebra}
\keyword{array}