View source: R/ownership_extract.R
ownership_extract | R Documentation |
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.
ownership_extract(AF, C1, RP)
AF |
is a character vector about |
C1 |
is a character vector about |
RP |
is a character vector about |
return a tibble including five columns(.ownership, .names, .addr, .univ, .coll)
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.