makePunctDf: Make the df needed for punctuation stats

Description Usage Arguments Examples

View source: R/makePunctDf.R

Description

This function creates the dataframe needed to be able to look at the different punctuation uses

Usage

1
makePunctDf(misper_tweets)

Arguments

misper_tweets

cleaned data set of missing persons tweets with all variables coded manually

Examples

1
2
3
4
5
6
7
8
9
misper_tweets <- structure(list(retweet_count = c(41L, 1L, 2L, 85L, 3L, 0L, 0L,
2L, 3L, 12L), ast_yn = structure(c(1L, 1L, 1L, 1L, 1L, 1L, 1L,
1L, 1L, 1L), .Label = c("0", "1"), class = "factor"), qm_yn = structure(c(1L,
1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 2L), .Label = c("0", "1"), class = "factor"),
    exc_yn = structure(c(1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L,
    1L), .Label = c("0", "1"), class = "factor"), hasht_yn = structure(c(2L,
    1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L), .Label = c("0", "1"), class = "factor")), row.names = c(NA, 10L), class = "data.frame")

punct_df <- makePunctDf(misper_tweets)

maczokni/misperTweetsCode documentation built on May 8, 2020, 5:14 p.m.