Skip to content
funaction-orgPublic

About

r functions to facilitate the creation of CACTI requests and the preparation of their results

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

46 Commits

Folders and files

Repository files navigation

cacti

r functions to facilitate the creation of CACTI requests and the preparation of their results

author: Daniel Romero-Mujalli
email: daniel.romero@supsi.ch

Installation

(requires devtools)
type on R console

devtools::install_github("funaction/cacti")

Dependencies

  • readxl

USAGE

(NOT RUN)

read chemistry data

datapath <- "chemistry/cacti_data"

filename <- list.files(datapath, pattern = "Portugal", full.names = TRUE)

chem <- cacti::read_cacti(filename = filename)

bind chemistry with funaction data

assuming that x is the kobo dataframe:

selection <- unique(x$USID[x$USID %in% chem$USID])

foo <- x[x$USID %in% selection,]

grant that site Ids (USID) in foo and chem follow the same order

foo <- foo[order(foo$USID),] sum(foo$USID != chem$USID) # should be zero

bind chemistry to kobo data

foo <- cbind(foo, chem[,c(4:dim(chem)[2])])

x <- foo

create cacti request

?cacti::crt_cacti_request

About

r functions to facilitate the creation of CACTI requests and the preparation of their results

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages