autoDestr: Automated De-string of Responses

Description Usage Arguments Value Author(s) Examples

View source: R/autoDestr.R

Description

Automated de-string responses after performing textcleaner

Usage

1
autoDestr(rmat, char = 10)

Arguments

rmat

A textcleaner filtered response matrix

char

Minimum number of characters in a string to be checked for destr. Defaults to 10

Value

A list containing two objects:

rmat

A response matrix that has been de-stringed

string

A list containing the responses that were de-stringed. The row number is supplied for each case that was affected. This can be used to replicate the de-stringing process and to keep track of changes more generally

Author(s)

Alexander Christensen <[email protected]>

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
#create example stringed responses
stringed <- cbind(rowSums(cbind(rmat[,c(1,2)])),convmat)
#change name to stringed name
colnames(stringed)[1] <- "alligator.ant"


#text cleaned
clean <- textcleaner(rmat)

#automated de-string
convmat <- autoDestr(clean, 10)

AlexChristensen/SemNetCleaner documentation built on July 30, 2018, 10:16 p.m.