Description Usage Arguments Value Author(s) Examples
View source: R/read_in_WebOfKnowledge_export.R
Function to read in an exported document from the Web of Knowledge
1  | read_in_WebOfKnowledge_export(fileName = "savedrecs.txt", seperator = "\t", generate_PaperNo_Row = TRUE)
 | 
fileName | 
 Path of the file to read in. The Default requires a file in the working directory with the name savedrecs.txt.  | 
seperator | 
 A String representing the seperator of the csv/txt file. Default Web of Knowledge exports are tab seperated.  | 
generate_PaperNo_Row | 
 generates a new row of the document that represents an index for every row.  | 
A loaded in Document with or without a running index for all rows.
MFinst
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25  | ##---- Should be DIRECTLY executable !! ----
##-- ==>  Define data, use random,
##--	or do  help(data=index)  for the standard data sets.
## The function is currently defined as
  function(fileName = "savedrecs.txt",
           seperator = "\t",
           generate_PaperNo_Row = TRUE) {
    WoK_extracted = read.csv(
      fileName,
      header = TRUE,
      sep = seperator,
      encoding = "utf-8",
      na.strings = "",
      skipNul = TRUE,
      row.names = NULL,
      nrows = 0,
      quote = "",
      fill = FALSE
    )
    if (generate_PaperNo_Row) {
       WoK_extracted$Papern.No = seq.int(nrow(WoK_extracted))
    }
    return(WoK_extracted)
  }
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.