subsplit: Split lines and keep only certain entries

Description Usage Arguments

View source: R/subsplit.R

Description

This function splits a list or vector of lines by a pattern but includes only certain entries in the output (all of which must be present in each split string).

Usage

1
subsplit(x, pattern, inds = 1, cl, parallel = !missing(cl))

Arguments

x

Vector or list of strings (to be fed to 'strsplit')

pattern

Character string

inds

Numerical vector; entries of each 'strsplit' to keep


corybrunson/pubmed.network documentation built on May 13, 2019, 10:52 p.m.