#' Find and store important values for document type 5
#'
#' This function allows you to sort through document type 5 and save relevant information
#' @param df the dataframe for this site which is passed to each document type
#' @param stringList all of the page as a string list
#' @keywords type5
#' @export
#' @examples
#' processDocType5()
processDocType5 <- function(df = NULL, stringList = NULL){
df$Zone.UTM <- phraseFinder(stringList, "zone", "easting")
df$E.UTM <- phraseFinder(stringList, "easting", "northing")
df$N.UTM <- wordFinder(stringList, "northing")
df$Lat <- phraseFinder(stringList, "latitude:", "longitude:")
df$Long <- phraseFinder(stringList, "longitude:", "elevation")
df$UseInfo <- phraseFinderRemover(stringList,"type:","different", 3)
# Since there's no other simple information reocrded about the site, I am jsut keeping the whole site description text here
df$OccupationDensity <- phraseFinderRemover(stringList,"narrative","recorders", 1)
if(is.na( df$Zone.UTM)){
df$Zone.UTM <- wordFinderB4(stringList,"easting",1)
}
#
# if (df$UseInfo == NULL || df$Date == NULL || df$OccupationDensity == NULL)
# { df$ScanSuccess = FALSE}
# if (df$Zone.UTM == NULL && df$E.UTM == NULL && df$N.UTM == NULL && df$Lat == NULL && df$Long == NULL)
# { df$ScanSuccess = FALSE}
#
return(df)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.