Description Usage Arguments Value Examples
This function imports ego-centric network data from folders with separate files for alteri-level and edge data. It will run some basic checks upon the completness of the data and inform the user of potential problems. This functions can be used to import data exported from EgoNet (McCarty 2011).
1 2 | read.egonet.folders(egos.file, alter.folder, edge.folder, csv.sep = ",",
egoID = "egoID", first.col.row.names = FALSE)
|
egos.file |
File name of the .csv file containg the ego data. |
alter.folder |
Folder name of the folder containing the alter data in separate .csv files for each ego/ network. |
edge.folder |
Folder name of the folder containing the edge/ tie data in separate .csv files for each ego/ network. |
csv.sep |
|
egoID |
|
first.col.row.names |
|
A list of six objects - the **egoR** object: (1) egos.df: dataframe of all
egos and their attributes; (2) alteri.df: dataframe of all alteri;
(3) alteri.list: list of dataframes of all alteri per ego;
(4) edges: list of dataframes with edge lists per network; (5)
graphs: list of igraph objects; (6) results: a result dataframe,
pre-populated with the network size of each network
1 2 3 4 5 | egos.file <- system.file("extdata", "egos_32.csv", package = "egonetR")
alteri.folder <- system.file("extdata", "alteri_32", package = "egonetR")
edge.folder <- system.file("extdata", "edges_32", package = "egonetR")
ef <- read.egonet.folders(egos.file = egos.file, alter.folder = alteri.folder, edge.folder = edge.folder, csv.sep = ";")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.