Description Usage Arguments Value Examples
View source: R/scores.tables.tweak.R
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.
1 2 3 | scores.tables.tweak(myVariables,
myCaption = "Globally averaged statistical metrics",
inputDir = getwd(), outputDir = FALSE)
|
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. |
One table in LaTeX format that shows a subset of statistical metrics
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | 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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.