View source: R/parse_swecris_export.R
parse_involved_people | R Documentation |
InvolvedPeople is a field where strings are provided like ¤¤¤Peter Hedstroem¤0000-0003-1102-4342¤Principal Investigator¤Projektledare¤Male
parse_involved_people(x)
x |
the InvolvedPeople string |
These strings encode a dataset equivalent to what a call using swecris_project_people("2021-00157_VR")
would provide.
Instead of making multiple API request calls to resolve, a utility fcn for parsing is provided.
## Not run:
if(interactive()){
ip <- swecris_kth$InvolvedPeople
ppl <- purrr::map_dfr(ip, parse_involved_people, .id = "row")
ppl$ProjectId <- swecris_kth[as.integer(ppl$row),]$ProjectId
}
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.