-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME.Rmd
58 lines (43 loc) · 1.88 KB
/
README.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
---
output: github_document
---
<!-- README.md is generated from README.Rmd. Please edit that file -->
```{r setup, include = FALSE}
knitr::opts_chunk$set(echo = TRUE, collapse = TRUE, comment = "#>")
```
# shouldbeverified <img src="man/figures/logo.png" width="160px" align="right" />
[![Build status](https://travis-ci.org/mkearney/shouldbeverified.svg?branch=master)](https://travis-ci.org/mkearney/shouldbeverified)
[![CRAN status](https://www.r-pkg.org/badges/version/shouldbeverified)](https://cran.r-project.org/package=shouldbeverified)
[![Coverage Status](https://codecov.io/gh/mkearney/shouldbeverified/branch/master/graph/badge.svg)](https://codecov.io/gh/mkearney/shouldbeverified?branch=master)
<!--#![Downloads](https://cranlogs.r-pkg.org/badges/shouldbeverified)
#![Downloads](https://cranlogs.r-pkg.org/badges/grand-total/shouldbeverified)-->
[![lifecycle](https://img.shields.io/badge/lifecycle-experimental-orange.svg)](https://www.tidyverse.org/lifecycle/#experimental)
> An R package for predicting whether Twitter users should be verified
## Installation
Install the development version from Github with:
``` r
## install remotes pkg if not already
if (!requireNamespace("remotes")) {
install.packages("remotes")
}
## install from github
remotes::install_github("mkearney/shouldbeverified")
```
At the current time, this package requires the development version of [textfeatures](https://textfeatures.mikewk.com), which means installing from
Github:
``` r
## install from github
remotes::install_github("mkearney/textfeatures")
```
## Use
The key function `should_be_verified()` accepts either a character vector with
Twitter screen names or user IDs *or* a data frame as returned by
[rtweet](https://rtweet.info).
```{r}
## load package
library(shouldbeverified)
## predict whether user(s) should be verified
should_be_verified(
c("kearneymw", "MizzouDataSci", "gelliottmorris")
)
```