Skip to contents

Get affiliations

Usage

get_affiliation(address, info = "university")

Arguments

address

The address to parse.

info

The information to extract, one of c("university", "department").

Examples

address <- c(
  "Department of Psychology, Cornell University, Ithaca, New York 14853-7601.",
  "Dipartimento di Psicologia Generale, Università di Padova, Italy.",
  "Universität Mannheim, Federal Republic of Germany.",
  "Département de psychologie, Universit&#xe9; du Québec à Montréal, Canada."
)

get_affiliation(address, "department")
#> [1] "Department of Psychology"            "Dipartimento di Psicologia Generale"
#> [3] NA                                    "Département de psychologie"         
get_affiliation(address, "university")
#> [1] "Cornell University"   "Università di Padova" "Universität Mannheim"
#> [4] NA