Learn R Programming

equatiomatic (version 0.1.0)

extract_subscripts: Extract the subscripts from a given term

Description

Extract the subscripts from a given term

Usage

extract_subscripts(primary, full_term_v)

Arguments

primary

A single primary term, e.g., "partyid"

full_term_v

A vector of full terms, e.g., c("partyidDon't know", "partyidOther party". Can be of length 1.

Examples

Run this code
# NOT RUN {
extract_subscripts("partyid", "partyidDon't know")
extract_subscripts("partyid",
                   c("partyidDon't know", "partyidOther party",
                     "partyidNot str democrat"))
# }

Run the code above in your browser using DataLab