Skip to content

Commit

Permalink
Edit function help file
Browse files Browse the repository at this point in the history
  • Loading branch information
jobreu committed Feb 16, 2024
1 parent a748b92 commit 277d0b8
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 27 deletions.
8 changes: 4 additions & 4 deletions R/parse_yt_comments.R
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion docs/authors.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/pkgdown.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

3 changes: 1 addition & 2 deletions docs/reference/index.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 5 additions & 10 deletions docs/reference/parse_yt_comments.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions docs/sitemap.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
<url>
<loc>/404.html</loc>
</url>
<url>
<loc>/LICENSE-text.html</loc>
</url>
<url>
<loc>/authors.html</loc>
</url>
<url>
<loc>/index.html</loc>
</url>
<url>
<loc>/LICENSE-text.html</loc>
</url>
<url>
<loc>/reference/index.html</loc>
</url>
Expand Down
10 changes: 4 additions & 6 deletions man/parse_yt_comments.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 277d0b8

Please sign in to comment.