Usage
read.srt(file, header = TRUE, sep = "", attr = FALSE ,
toarray = TRUE, dichot = FALSE, labels = NULL)- file
{
path to the file
}
- header
{
(logical) does the file has a header?
}
- sep
{
the separator among the columns (default is horizontal tab)
}
- attr
{
(logical) whether or not the file corresponds to attribute-based data
}
- toarray
{
(logical) should the data frame be transformed to arrays?
}
- dichot
{
(logical) should the data be dichotomized?
}
- labels
{
(optional) labels of the nodes
}
srt
stands for send, receive, and ties, and it is a data frame with at least 3 columns for the sender, receiver, and the ties, one column for each type of relation. However, the attr
option correspond to a actor and self-ties data frame file with the option to transform it to an identical matrix.
It is also possible to treat the input data as data frame object and manipulate it via e.g. the subset
function with the toarray
option.
By default an array; usually with three dimensions of stacked matrices where the multiple relations are placed. If toarray = FALSE
, then the data frame is given.[object Object]write.srt
, read.gml
IO
manip
data