ReversedRequiredFormat: ReversedRequiredFormat

View source: R/ReversedRequiredFormat.R

ReversedRequiredFormatR Documentation

ReversedRequiredFormat

Description

ReversedRequiredFormat

Usage

ReversedRequiredFormat(
  Data,
  input,
  x = NULL,
  ThisIsShinyApp = FALSE,
  Untidy = FALSE
)

Arguments

Data

Standardized data, returned from RequiredFormat()

input

A named list, typically the output of function RequiredFormat_interactive, also called site profile with information on column names correspondence, size units etc... Chosen to be the output profile the user wants their data turned into

x

For internal use when function used by Shiny app

ThisIsShinyApp

For internal use when function used by Shiny app (logical)

Untidy

(logical). If TRUE and input$tidy exists, the data will be untidy (changed from long to wide format, according to input information)

Details

This function takes the standardized forest inventory data.table (returned by RequiredFormat()) and converts the column names to the names of the profile given as input.

Value

(data.frame) in the format given the profile selected in input.

Examples

## Not run: 

data(ParacouSubsetFormated)
data("ForestGeoProfile")
ReversedRequiredFormat(ParacouSubsetFormated, ForestGeoProfile)
               
## End(Not run)


VincyaneBadouard/TreeData documentation built on Jan. 4, 2024, 2:56 a.m.