% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Create.actor.youtube.R
\name{Create.actor.youtube}
\alias{Create.actor.youtube}
\title{Create YouTube actor network}
\usage{
\method{Create}{actor.youtube}(datasource, type, ..., writeToFile = FALSE, verbose = TRUE)
}
\arguments{
\item{datasource}{Collected social media data with \code{"datasource"} and \code{"youtube"} class names.}

\item{type}{Character string. Type of network to be created, set to \code{"actor"}.}

\item{...}{Additional parameters passed to function. Not used in this method.}

\item{writeToFile}{Logical. Write data to file. Default is \code{FALSE}.}

\item{verbose}{Logical. Output additional information. Default is \code{TRUE}.}
}
\value{
Network as a named list of two dataframes containing \code{$nodes} and \code{$edges}.
}
\description{
Creates a YouTube actor network from comment threads on YouTube videos. Users who have made comments to
a video (top-level comments) and users who have replied to those comments are actor nodes. The comments are
represented as directed edges between the actors. The video id is also included as an actor node, representative of
the videos publisher with top-level comments as directed edges towards them.
}
\examples{
\dontrun{
# create a YouTube actor network graph
actorNetwork <- youtubeData |> Create("actor")

# network
# actorNetwork$nodes
# actorNetwork$edges
}

}
