Learn R Programming

SemNetCleaner (version 1.0.0)

destr: De-string Responses

Description

De-string responses after performing textcleaner

Usage

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

Examples

Run this code
# NOT RUN {
#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, ".")

# }

Run the code above in your browser using DataLab