Skip to content

Commit 8971396

Browse files
Kenneth BenoitKenneth Benoit
authored andcommitted
Fix #50
1 parent 6d1b8e4 commit 8971396

File tree

5 files changed

+6
-15
lines changed

5 files changed

+6
-15
lines changed

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Package: quanteda.textstats
2-
Version: 0.95
2+
Version: 0.95.1
33
Title: Textual Statistics for the Quantitative Analysis of Textual Data
44
Description: Textual statistics functions formerly in the 'quanteda' package.
55
Textual statistics for characterizing and comparing textual data. Includes

NAMESPACE

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
# Generated by roxygen2: do not edit by hand
22

3-
S3method("[",textstat)
43
S3method(as.data.frame,textstat_proxy)
54
S3method(as.list,textstat_proxy)
65
S3method(head,textstat_proxy)

NEWS.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# quanteda.textstats 0.95.1
2+
3+
* Fixed how subsetting (`[`) works for textstat outputs, to fix #50.
4+
15
# quanteda.textstats 0.95
26

37
* Updated `textstat_simil()` for new **proxyC** version v0.2.2, which affects how similarities are returned for `NA` values. See #45.

R/textstat-methods.R

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,5 @@
11
# base methods --------------
22

3-
#' @method "[" textstat
4-
#' @export
5-
#' @noRd
6-
"[.textstat" <- function(x, i, j, ...) {
7-
if (missing(i)) i <- seq_len(nrow(x))
8-
if (missing(j)) j <- seq_len(ncol(x))
9-
l <- class(x)
10-
x <- as.data.frame(x)[i, j, drop = FALSE]
11-
class(x) <- l
12-
return(x)
13-
}
14-
153
# textstat_select ------------
164

175
#' Select rows of textstat objects by glob, regex or fixed patterns

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
[![CRAN
77
Version](https://www.r-pkg.org/badges/version/quanteda.textstats)](https://CRAN.R-project.org/package=quanteda.textstats)
8-
[![](https://img.shields.io/badge/devel%20version-0.95-royalblue.svg)](https://github.com/quanteda/quanteda.textstats)
8+
[![](https://img.shields.io/badge/devel%20version-0.95.1-royalblue.svg)](https://github.com/quanteda/quanteda.textstats)
99
[![Downloads](https://cranlogs.r-pkg.org/badges/quanteda.textstats)](https://CRAN.R-project.org/package=quanteda.textstats)
1010
[![Total
1111
Downloads](https://cranlogs.r-pkg.org/badges/grand-total/quanteda.textstats?color=orange)](https://CRAN.R-project.org/package=quanteda.textstats)

0 commit comments

Comments
 (0)