Create References Dataframe

create_references_df(endnote_list, collapse = FALSE)

Arguments

endnote_list

list created with create_endnote_list()

collapse

should separate fields in "style" be collapsed to one field? (default: FALSE)

Value

data.frame with columns record_id, rec_number, ref_type_id, ref_type_name

Examples

endnote_list <- create_endnote_list() refs_df <- create_references_df(endnote_list) head(refs_df)
#> # A tibble: 6 x 83 #> rec_number ref_type ref_type_name year title title_secondary title_tertiary #> <dbl> <dbl> <chr> <chr> <chr> <chr> <chr> #> 1 2 27 Report 2003 Beteil… NA NA #> 2 3 27 Report 2005 RKM - … NA NA #> 3 4 27 Report 2004 Berlin… NA NA #> 4 6 27 Report 2004 RKM - … NA NA #> 5 7 27 Report 2004 Thresh… NA NA #> 6 8 27 Report 2005 Enhanc… NA NA #> # … with 76 more variables: abstract <chr>, author_tertiary01 <chr>, #> # author_tertiary02 <chr>, author_tertiary03 <chr>, author_secondary01 <chr>, #> # author_secondary02 <chr>, author_secondary03 <chr>, #> # author_secondary04 <chr>, author_secondary05 <chr>, #> # author_secondary06 <chr>, author_secondary07 <chr>, #> # author_secondary08 <chr>, author_secondary09 <chr>, author01 <chr>, #> # author02 <chr>, author03 <chr>, author04 <chr>, author05 <chr>, #> # author06 <chr>, author07 <chr>, author08 <chr>, author09 <chr>, #> # author10 <chr>, author11 <chr>, author12 <chr>, author13 <chr>, #> # author14 <chr>, author15 <chr>, author16 <chr>, author17 <chr>, #> # author18 <chr>, author19 <chr>, author20 <chr>, author21 <chr>, #> # author22 <chr>, author23 <chr>, author24 <chr>, author25 <chr>, #> # author26 <chr>, author27 <chr>, author28 <chr>, author29 <chr>, #> # author30 <chr>, author31 <chr>, author32 <chr>, author33 <chr>, #> # authaddress <chr>, periodical_title_full <chr>, #> # periodical_title_abbr <chr>, pages <chr>, volume <chr>, numvols <chr>, #> # section <chr>, edition <chr>, pubdates <chr>, publisher <chr>, #> # publocation <chr>, puborig <chr>, urls_pdf01 <chr>, urls_related <chr>, #> # urls_pdf02 <chr>, urls_pdf03 <chr>, electronic_resource_num <chr>, #> # worktype <chr>, label <chr>, keyword01 <chr>, notes <chr>, caption <chr>, #> # custom1 <chr>, custom2 <chr>, custom3 <chr>, custom7 <chr>, isbn <chr>, #> # language <chr>, database_name <chr>, database_path <chr>