Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

scores.tables.tweak

Tweak summary table


Description

This function allows the user to tweak the summary table computed by scores.tables. Contrary to scores.tables, this function can be used to create a single summary table that includes the most important metrics only. The user can specify what variables to include and in what order they should appear.

Usage

scores.tables.tweak(myVariables,
  myCaption = "Globally averaged statistical metrics",
  inputDir = getwd(), outputDir = FALSE)

Arguments

myVariables

An R object with variable names of variables that should be included in table, e.g. c('GPP', 'RECO', 'NEE')

myCaption

A string that is used as table caption, e.g. 'Globally averaged statistical metrics'.

inputDir

A string that gives the input directory, e.g. '/home/project/study'.

outputDir

A string that gives the output directory, e.g. '/home/project/study'. The output will only be written if the user specifies an output directory.

Value

One table in LaTeX format that shows a subset of statistical metrics

Examples

library(amber)
library(classInt)
library(doParallel)
library(foreach)
library(Hmisc)
library(latex2exp)
library(ncdf4)
library(parallel)
library(raster)
library(rgdal)
library(rgeos)
library(scico)
library(sp)
library(stats)
library(utils)
library(viridis)
library(xtable)

myInputDir <- paste(system.file('extdata', package = 'amber'), 'scores', sep = '/')
myVariables <- c('GPP', 'LAI', 'ALBS')
scores.tables.tweak(myVariables = myVariables, inputDir = myInputDir)

amber

Automated Model Benchmarking R Package

v1.0.3
GPL-3
Authors
Christian Seiler [cre, aut]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.