list_to_df: Convert documents list to data frame

Description Usage Arguments Details

View source: R/transforms.R

Description

Convert documents list to data frame

Usage

1

Arguments

x

an object of class "xml_document" or "finder_docs" obtained from query_fetch().

Details

In general, a lot of information can be lost when transforming to a data frame, such as attributes or entries that have more than one element. Columns "title" and "description" often have two elements with the second being the English translation. Because of this, columns "title", "title_en", "description", and "description_en" are created to preserve this. Columns "entity", "category", "fullgeo" usually have more than one entry for each document and as such are added to the data frame as "list columns".


WorldHealthOrganization/finderquery documentation built on Oct. 11, 2020, 12:50 a.m.