diff --git a/R/parse_yt_comments.R b/R/parse_yt_comments.R index f619536..dbb4b09 100644 --- a/R/parse_yt_comments.R +++ b/R/parse_yt_comments.R @@ -1,9 +1,9 @@ -#' Parse YouTube Comments -#' This function processes a dataframe of YouTube comments, extracting and cleaning various elements such as emojis, Emoticons, URLs, timestamps, and user mentions. It supports comment dataframes created with the \code{\link[tuber]{get_all_comments}},\code{\link[tuber]{get_comments}} or \code{\link[vosonSML]{Collect}} functions. +#' @title Parse YouTube Comments +#' @description This function processes a dataframe of YouTube comments, extracting and cleaning various elements such as emojis, emoticons, URLs, timestamps, and user mentions. It supports comment dataframes created with the \code{\link[tuber]{get_all_comments}},\code{\link[tuber]{get_comments}} or \code{\link[vosonSML]{Collect}} functions. #' @param data A dataframe containing YouTube comments. The structure of this dataframe should conform to the output of the 'tuber' or 'vosonSML' package. #' @param package A character string specifying the package that was used to collect the comment data. The default value is "auto", which automatically detects the package based on the structure of the `data`. Other possible values are "tuber" and "vosonSML". #' @param verbose A logical parameter. If TRUE, the function prints progress reports to the console. -#' @return A dataframe with the original comment data and additional columns for cleaned comments, emojis, emoji descriptions, emoticons, URLs, timestamps, and user mentions. The dataframe also includes metadata as attributes, such as the origin package, tubecleanR version, and counts of comments, links, emojis, Emoticons, user mentions, and timestamps. +#' @return A dataframe with the original comment data and additional columns for cleaned comments, emojis, emoji descriptions, emoticons, URLs, timestamps, and user mentions. The dataframe also includes metadata as attributes, such as the origin package, tubecleanR version, and counts of comments, links, emojis, emoticons, user mentions, and timestamps. #' @importFrom stringi stri_split_boundaries stri_extract_all_regex stri_replace_all_regex #' @importFrom anytime anytime #' @importFrom qdapRegex rm_url rm_non_words @@ -17,7 +17,7 @@ #' parsed_comments <- parse_yt_comments(tuber_comments) #' @export #' @keywords youtube, comments, parsing -#' @note This function requires the 'tuber' or 'vosonSML' package for data collection. The 'tubecleanR' minipackage is only for processing. +#' @note This function requires the 'tuber' or 'vosonSML' package for data collection. The 'tubecleanR' minipackage is only meant for processing YouTube comment data. parse_yt_comments <- function(data, package = "auto", diff --git a/docs/authors.html b/docs/authors.html index be53d5b..3e794fb 100644 --- a/docs/authors.html +++ b/docs/authors.html @@ -52,7 +52,7 @@

Citation

-

Kohne, J., Breuer, J. (2024). +

Breuer JKJ (2024). tubecleanR: Parsing and Preprocessing YouTube Comment Data. R package version 0.1.0.

diff --git a/docs/pkgdown.yml b/docs/pkgdown.yml index 01dd8d4..f1f3b30 100644 --- a/docs/pkgdown.yml +++ b/docs/pkgdown.yml @@ -2,5 +2,5 @@ pandoc: 3.1.1 pkgdown: 2.0.7 pkgdown_sha: ~ articles: {} -last_built: 2024-02-16T08:45Z +last_built: 2024-02-16T17:22Z diff --git a/docs/reference/index.html b/docs/reference/index.html index 11c60c9..bbdb559 100644 --- a/docs/reference/index.html +++ b/docs/reference/index.html @@ -44,8 +44,7 @@

All functions

parse_yt_comments()

-

Parse YouTube Comments -This function processes a dataframe of YouTube comments, extracting and cleaning various elements such as emojis, Emoticons, URLs, timestamps, and user mentions. It supports comment dataframes created with the get_all_comments,get_comments or Collect functions.

+

Parse YouTube Comments