Skip to content

Commit eab4a83

Browse files
committed
documentation updates
1 parent 2b02a08 commit eab4a83

17 files changed

+48
-395
lines changed

DESCRIPTION

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@ Type: Package
33
Title: Emoxicon: A New Tool for Emotional Analysis in Text
44
Version: 0.0.9991
55
Date: 2019-11-04
6-
Authors: c(person("Tara", "Valladares",
6+
Author: c(person("Tara", "Valladares",
77
email = "[email protected]", role = c("aut","cre")),
88
person("Hudson", "Golino", email = "[email protected]",
9-
role = c("aut")), )
9+
role = c("aut")))
1010
Maintainer: Tara Valladares <[email protected]>
11-
Description: Analysis of text data using an emotion lexicon and Rasch models.
11+
Description: Analysis of text data using Rasch models and emotion lexicons.
1212
Depends: R (>= 3.5.0)
1313
License: GPL (>= 3.0)
1414
Encoding: UTF-8

NAMESPACE

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,9 @@
33
export(catplot)
44
export(emoxicon)
55
export(rasch)
6+
import(eRm)
67
import(ggplot2)
78
importFrom(dplyr,left_join)
8-
importFrom(eRm,RM)
9-
importFrom(eRm,itemfit)
10-
importFrom(eRm,person.parameter)
11-
importFrom(eRm,personMisfit)
12-
importFrom(eRm,personfit)
139
importFrom(reshape2,melt)
1410
importFrom(stats,aggregate)
1511
importFrom(stats,na.omit)

R/category_order.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#' @author Tara Valladares <tls8vx at virginia.edu>
44
#' @noRd
55
#'
6-
#' @importFrom eRm RM
6+
#' @import eRm
77
#' @importFrom stringr str_extract str_extract_all
88
#'
99
#'

R/category_plots.R

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
#' @param categories Category orders produced from \code{rasch}
44
#' @param cat_labels Optional category labels in the style of c(`colname1` = "newlabel1", `colname2` = "newlabel2").
55
#' If not specified, labels will be taken from the category column names
6+
#' @param \dots Other arguments to pass onto \code{\link{ggplot}}
67
#'
78
#' @author Tara Valladares <tls8vx at virginia.edu>
89
#'

R/rasch.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
#'
3131
#' @references
3232
#'
33-
#' @importFrom eRm RM
33+
#' @import eRm
3434
#' @importFrom stats na.omit
3535
#'
3636
#' @export

R/rasch_fit.R

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
#' Calculate Rasch fit statistics
22
#'
3-
#' This function calculates Rasch person and item fit statistics.
3+
#' This function serves as a wrapper to
4+
#' calculate Rasch person and item fit statistics based
5+
#' on the \code{\link{eRm}} fit functions.
46
#'
5-
#' @param model The object outputted by the \code{emoxicon} \code{rasch} function.
7+
#' @param model The object outputted by the \code{\link{emoxicon}} \code{\link{rasch}} function.
68
#'
79
#' @param groups Logical. Should summary fit statistics be calculated across
810
#' the individual group models, if present? The default is FALSE. Running fit statistics
@@ -11,7 +13,7 @@
1113
#'
1214
#' @author Tara Valladares <tls8vx at virginia.edu>
1315
#'
14-
#' @importFrom eRm RM person.parameter personfit itemfit personMisfit
16+
#' @import eRm
1517
#'
1618
#'
1719

data-raw/trolls-cleaning.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,5 +41,5 @@ trolls$content<- as.character(trolls$content)
4141
usethis::use_data(trolls, overwrite = TRUE)
4242

4343
set.seed(1)
44-
tinyTrolls <- trolls[which(trolls$author%in%sample(unique(trolls$author), size=50)),]
44+
tinytrolls <- trolls[which(trolls$author%in%sample(unique(trolls$author), size=50)),]
4545
usethis::use_data(tinytrolls, overwrite = TRUE)

data/emotionsfreq.rda

-185 KB
Binary file not shown.

ignore/Emoxicon_DADA2019.R

Lines changed: 0 additions & 127 deletions
This file was deleted.

0 commit comments

Comments
 (0)