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
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/graph-network.R
\name{network_data}
\alias{network_data}
\alias{network_graph}
\title{Network data}
\usage{
network_data(x, e = c("mention", "retweet", "reply", "quote"))
network_graph(x, e = c("mention", "retweet", "reply", "quote"))
}
\arguments{
\item{x}{Data frame returned by rtweet function}
\item{e}{Type of edge/link–i.e., "mention", "retweet", "quote", "reply".
This must be a character vector of length one or more. This value will be
split on punctuation and space (so you can include multiple types in the
same string separated by a comma or space). The values "all" and
"semantic" are assumed to mean all edge types, which is equivalent to the
default value of \code{c("mention", "retweet", "reply", "quote")}}
}
\value{
A from/to data edge data frame
An igraph object
}
\description{
\itemize{
\item \code{network_data()} returns a data frame that can easily be converted to
various network classes.
\item \code{network_graph()} returns a igraph object
}
}
\details{
Retrieve data to know which users are connected to which users.
\ifelse{html}{\href{https://lifecycle.r-lib.org/articles/stages.html#deprecated}{\figure{lifecycle-deprecated.svg}{options: alt='[Deprecated]'}}}{\strong{[Deprecated]}}
}
\seealso{
\code{\link[=network_graph]{network_graph()}} \code{\link{rtweet-deprecated}}
}
|