ownership_extract: extract the author-ownership information of WoS plain txt

View source: R/ownership_extract.R

ownership_extractR Documentation

extract the author-ownership information of WoS plain txt

Description

Generally, a data.frame which is imported from Web of Science (WoS) plain txt will include a number of two-character field tags, i.e, column names, such as AU, AF, PY and more. Their specific meaning are available at (https://images.webofknowledge.com/images/help/WOS/hs_wos_fieldtags.html). The function of ownership_extract() is to extract and tidy the author-ownership information from some necessary columns.

Usage

ownership_extract(AF, C1, RP)

Arguments

AF

is a character vector about Author Full Name

C1

is a character vector about Author Address

RP

is a character vector about Reprint Address

Value

return a tibble including five columns(.ownership, .names, .addr, .univ, .coll)

Examples


res <- df %>%
 rowwise() %>%
 mutate(
   info = list(ownership_extract(AF, C1, RP))
 ) %>%
 ungroup()

This code store the result in list-column. In tidyverse frame,
we can unnest the list-column and then get a tibble with
one row per ownership information * paper combination.

res %>%
 select(UT, info) %>%
 unnest(cols = c(info)) %>%
 select(UT, .ownership, .names, .univ, .coll)




perlatex/tidyESI documentation built on Nov. 25, 2022, 11:14 p.m.