get_shortTitle: Returns a shortened title

Description Usage Arguments Value Examples

View source: R/utils.R

Description

Removes "Data for:" and "Replication Data for:" and uses the first five words for the title or the title up to the first colon, whichvever comes first.

Usage

1

Arguments

title

A string, typically a dataset title.

Value

short_title, a string.

Examples

1
2
3
short_title <- get_shortTitle(
  "Data for: From Pews to Politics: Religious Sermons and Political Participation in Africa"
  )

QualitativeDataRepository/dvcurator documentation built on Nov. 8, 2021, 10 a.m.