destr: De-string Responses

Description Usage Arguments Value Author(s) Examples

View source: R/destr.R

Description

De-string responses after performing textcleaner

Usage

1
destr(rmat, column, sep)

Arguments

rmat

A semnetcleaner filtered response matrix

column

The column number or name of the stringed response

sep

Separating string character (e.g., " ", ".", ","). Must be input as a character

Value

A list containing four objects:

rmat

A response matrix that has been de-stringed

part

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

added

Stringed responses that were added to the response matrix

removed

Stringed responses that were removed from the response matrix

Author(s)

Alexander Christensen <[email protected]>

Examples

1
2
3
4
5
6
7
8
#create example stringed responses
stringed <- cbind(rowSums(cbind(rmat[,c(1,2)])),convmat)

#change name to stringed name
colnames(stringed)[1] <- "alligator.ant"

#de-string
convmat <- destr(stringed, 1, ".")

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