write_wos_data: Write WoS data

Description Usage Arguments Value Examples

Description

Writes each of the data frames in an object of class wos_data to its own csv file.

Usage

1
write_wos_data(wos_data, dir)

Arguments

wos_data

An object of class wos_data, created by calling pull_wos.

dir

Path to the directory where you want to write the files. If the directory doesn't yet exist, write_wos_data will create it for you. Note, this directory cannot already have WoS data files in it.

Value

Nothing. Files are written to disk.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
## Not run: 

sid <- auth("your_username", password = "your_password")
wos_data <- pull_wos("TS = (dog welfare) AND PY = 2010", sid = sid)

# Write files to working directory
write_wos_data(wos_data, ".")

# Write files to "wos-data" dir
write_wos_data(wos_data, "wos-data")

## End(Not run)

jessicabeyer/wosr documentation built on May 31, 2019, 10:03 a.m.