R/data.R

#' keywords relating to COVID-19 pandemics
#'
#' A list of keywords relating to the COVID-19 pandemic
#'
#' @format A dataframe containing one variable:
#' \itemize{
#'   \item keys: list of keywords
#'     }
"covid_theme"


#' Observed sentiment document (OSD).
#'
#' A tidy-format list (dataframe) showing the resulting
#' classification of each text record into positive, negative
#' or neutral sentiment. The second column of the dataframe consists of
#' labels variables `present` and `absent` to indicate whether any of the secondary
#' keywords exist in a text record.
#'
#' @format A dataframe with the following variables:
#' \itemize{
#'   \item ID: numeric id of text record with valid
#'   resultant sentiments score and classification.
#'   \item sentiment: Containing the sentiment classes.
#'   \item keywords: Indicator to show whether a secondary
#'   keyword in present or absent in a text record.
#'     }
"osd_data"


#' Twitter posts on police/policing
#'
#' A text document (an DTD) containing twitter posts
#' (for an anonymous geographical location 'A') on police/policing.
#' The DTD also includes
#' posts that express sentiments on policing in relation to
#' the COVID-19 pandemic (Secondary subject B)
#'
#' @format A dataframe containing one variable
#' \itemize{
#'   \item text: individual text records
#'     }
"policing_dtd"

#' Fake Twitter posts on police/policing 2
#'
#' A text document (an DTD) containing twitter posts
#' (for an anonymous geographical location 2) on police/policing
#' (primary subject A). The DTD includes
#' posts that express sentiments on policing in relation to
#' the COVID-19 pandemic (Secondary subject B)
#'
#' @format A dataframe with the following variables:
#' \itemize{
#'   \item text: individual text records
#'   \item group: real/arbitrary groups of text records
#'     }
"tweets"

#' Keywords relating to signages at train stations
#'
#' List of signages at the Piccadilly Train
#' Station (Manchester)
#'
#' @format A dataframe containing one variable:
#' \itemize{
#'   \item keys: list of keywords
#'     }
"signage_theme"

#' Keywords relating to facilities at train stations
#'
#' List of words relating to refreshments that can
#' be found at the Piccadilly Train
#' Station (Manchester)
#'
#' @format A dataframe containing one variable:
#' \itemize{
#'   \item keys: list of keywords
#'     }
"refreshment_theme"

#' Customer reviews from tripadvisor website
#'
#' A text document (an DTD) containing the  customer reviews
#' of the Piccadilly train station (Manchester) downloaded
#' from the www.tripadvisor.co.uk'. The reviews cover from
#' July 2016 to March 2021.
#'
#' @format A dataframe containing one variable
#' \itemize{
#'   \item text: individual text records
#'     }
"reviews_dtd"

#' Comments on a video of a political debate.
#'
#' A DTD containing individual comments on a video
#' showing the first debate between two US presidential
#' nominees (Donald Trump and Hillary Clinton)
#' in Sept. 2016. (Credit: NBC News).
#'
#' The DTD only include the comments within the first 24hrs
#' in which the video was posted. All individual comments
#' in which the names of both candidates are mentioned
#' are filtered out.
#'
#' @format A dataframe containing one variable
#' \itemize{
#'   \item text: individual text records
#'     }
"debate_dtd"

Try the opitools package in your browser

Any scripts or data that you put into this service are public.

opitools documentation built on July 29, 2021, 5:06 p.m.