File: Pajek.Rd

package info (click to toggle)
r-cran-blockmodeling 1.1.5-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 912 kB
  • sloc: ansic: 2,024; f90: 952; sh: 13; makefile: 5
file content (110 lines) | stat: -rw-r--r-- 4,022 bytes parent folder | download | duplicates (2)
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/loadmatrix.R, R/loadnetwork.R,
%   R/loadnetwork2.R, R/loadnetwork3.R, R/loadnetwork4.R, R/loadpajek.R,
%   R/loadvector.R, R/loadvector2.R, R/savematrix.R, R/savenetwork.R,
%   R/savevector.R
\name{loadmatrix}
\alias{loadmatrix}
\alias{Pajek}
\alias{loadnetwork}
\alias{loadnetwork2}
\alias{loadnetwork3}
\alias{loadnetwork4}
\alias{savevector}
\alias{savenetwork}
\alias{savematrix}
\alias{loadvector}
\alias{loadvector2}
\alias{loadpajek}
\title{Functions for loading and writing Pajek files}
\usage{
loadmatrix(filename)

loadnetwork(filename, useSparseMatrix = NULL, minN = 50)

loadnetwork2(
  filename,
  useSparseMatrix = NULL,
  minN = 50,
  safe = TRUE,
  closeFile = TRUE
)

loadnetwork3(filename, useSparseMatrix = NULL, minN = 50)

loadnetwork4(filename, useSparseMatrix = NULL, minN = 50, fill = FALSE)

loadpajek(filename)

loadvector(filename)

loadvector2(filename)

savematrix(n, filename, twomode = 1)

savenetwork(n, filename, twomode = "default", symetric = NULL)

savevector(v, filename)
}
\arguments{
\item{filename}{The name of the file to be loaded or saved to or an open file object.}

\item{useSparseMatrix}{Should a sparse matrix be use instead of the ordinary one? Sparse matrices can only be used if package Matrix is installed. The default \code{NULL} uses sparse matrices  for networks with more that \code{minN} vertices.}

\item{minN}{The minimal number of units in the network to use sparse matrices.}

\item{safe}{If \code{FALSE} error will occur if not all vertices have labels. If \code{TRUE} reading works faster.}

\item{closeFile}{Should the connection be closed at the end. Should be always \code{TRUE} if function is used directly.}

\item{fill}{If \code{TRUE}, then in case the rows have unequal length, blank fields are added.}

\item{n}{A matrix representing the network.}

\item{twomode}{1 for one-mode networks and 2 for two-mode networks. Default sets the argument to 1 for square matrices and to 2 for others.}

\item{symetric}{If \code{TRUE}, only the lower part of the matrix is used and the values are interpreted as "Edges", not "Arcs".}

\item{v}{A vector.}
}
\value{
NULL, a matrix or a vector.
}
\description{
\code{loadmatrix} - Loads a Pajek ".mat" filename as a matrix.

Functions for reading/loading and writing Pajek files:

\code{loadnetwork} - Loads a Pajek ".net" filename as a matrix. For now, only simple one and two-mode networks are supported (eg. only single relations, no time information).

\code{loadnetwork2} - The same as above, but adapted to be called within \code{loadpajek}.

\code{loadnetwork3} - Another version for reading networks.

\code{loadnetwork4} - Another version for reading networks.

\code{loadpajek} - Loads a Pajek project file name (".paj") as a list with the following components: Networks, Partitions, Vectors and Clusters. Clusters and hierarchies are dismissed.

\code{loadvector} - Loads a Pajek ".clu" filename as a vector.

\code{loadvector2} - The same as above, but adapted to be called within \code{loadpajek} - as a consequence not suited for reading clusters.

\code{savematrix} - Saves a matrix into a  Pajek ".mat" filename.

\code{savenetwork} - Saves a matrix into a  Pajek ".net" filename.

\code{savevector} - Saves a vector into a  Pajek ".clu" filename.
}
\references{
Batagelj, V., & Mrvar. A. (1999). Pajek - Program for Large Network Analysis. Retrieved from http://vlado.fmf.uni-lj.si/pub/networks/pajek/.

de Nooy, W., Mrvar, A., & Batagelj. V. (2005). Exploratory Social Network Analysis with Pajek. London: SAGE Publications.
}
\seealso{
\code{\link{plot.mat}}, \code{\link{critFunC}}, \code{\link{optRandomParC}}
}
\author{
Vladimir Batagelj & Andrej Mrvar (most functions), \enc{Aleš Žiberna}{Ales Ziberna} (\code{loadnetwork}, \code{loadpajek} and modification of others)
}
\keyword{file}
\keyword{graphs}