mkCSV: Create a CSV or XLSX file from the extracted results from...

Description Usage Arguments Author(s)

Description

Takes the results from extracting keywords from the text, and writes then into a CSV or XLSX file to be reviewed.

Usage

1
2
3
4
5
6
7
8
9
mkCSV(eco, xlsxFile = character(),
      obs = grep(gsub("rds", "", basename(f)), species$PDF, fixed = TRUE),
      species = NULL, # the data.frame from Species.csv
      spVar = c("Country", "State", "City", "Location", "Region"),
      spFixed = c("reference_ID", "PDF"),
      jvar = getLocation,
      write = TRUE,
      jdata = jvar(eco))
     

Arguments

eco

a data frame with each row corresponding to a term extracted from the PDF document.

xlsxFile

the file name to which the results are written as an XLSX file.

obs

The rows in the Species.csv which correspond to the document in

species

the data.frame of Species.csv

spVar

the variables in Species.csv which are of interest in the comparison CSV or XLSX.

spFixed

the fixed variables, i.e, the reference variables which identify the rows of Species.csv.

jvar

the function to call to extract the items from the ecoextract results

write

logical, whether to write the extracted terms to a file

jdata

the extracted data items from the ecoextract results

Author(s)

Duncan Temple Lang


dsidavis/SpilloverDA documentation built on June 1, 2019, 2:55 p.m.