R/parseLTP.R

parseLTP = function(result)
{
    result = strsplit(result,'\n\n')[[1]]
    result = sapply(result,strsplit,'\n')
    names(result) = NULL
    result = unlist(result)
    result = strsplit(result,' ')
    result = unlist(result)
    result
}

Try the rLTP package in your browser

Any scripts or data that you put into this service are public.

rLTP documentation built on May 2, 2019, 8:29 a.m.