Learn R Programming

SemNetCleaner (version 0.9.9)

splitstr.check: Split String Check

Description

A wrapper function for spell-checking (ensures next word does not belong to the previous)

Usage

splitstr.check(split, base)

Arguments

split

A split string to check

base

Database to check

Value

Returns the string as is or with the selected responses merged

Examples

Run this code
# NOT RUN {
#create long word vector
vec <- "bombay opossum guinea pig horse cow"

#split vector
split <- strsplit(vec, " ")[[1]]

# }
# NOT RUN {
splitstr.check(split, animals.database)
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab