r functions to facilitate the creation of CACTI requests and the preparation of their results
author: Daniel Romero-Mujalli
email: daniel.romero@supsi.ch
(requires devtools)
type on R console
devtools::install_github("funaction/cacti")
- readxl
(NOT RUN)
datapath <- "chemistry/cacti_data"
filename <- list.files(datapath, pattern = "Portugal", full.names = TRUE)
chem <- cacti::read_cacti(filename = filename)
selection <- unique(x$USID[x$USID %in% chem$USID])
foo <- x[x$USID %in% selection,]
foo <- foo[order(foo$USID),] sum(foo$USID != chem$USID) # should be zero
foo <- cbind(foo, chem[,c(4:dim(chem)[2])])
x <- foo
?cacti::crt_cacti_request