De-string responses after performing textcleaner
destr(rmat, column, sep)
A semnetcleaner filtered response matrix
The column number or name of the stringed response
Separating string character (e.g., " ", ".", ","). Must be input as a character
A list containing four objects:
A response matrix that has been 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
Stringed responses that were added to the response matrix
Stringed responses that were removed from the response matrix
# 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