create_ut_queries: Create a vector of UT-based queries

View source: R/query-wos.R

create_ut_queriesR Documentation

Create a vector of UT-based queries

Description

Use this function when you have a bunch of UTs whose data you want to pull and you need to write a series of UT-based queries to do so (i.e., queries in the form "UT = (WOS:000186387100005 OR WOS:000179260700001)").

Usage

create_ut_queries(uts, uts_per_query = 200)

Arguments

uts

UTs that will be placed inside the UT-based queries.

uts_per_query

Number of UTs to include in each query. Note, there is a limit on how long your query can be, so you probably want to keep this set to around 200.

Value

A vector of queries. You can feed these queries to pull_wos_apply to download data for each query.

Examples

## Not run: 

data <- pull_wos('TS = ("animal welfare") AND PY = (2002-2003)')
queries <- create_ut_queries(data$publication$ut)
pull_wos_apply(queries)

## End(Not run)

vt-arc/wosr documentation built on Sept. 27, 2022, 5:44 a.m.