% Please edit documentation in R/FarmDynR backup.R, R/FarmDynR.R
\name{Modes}
\alias{Modes}
\title{Retrieve mode of vector}
\usage{
Modes(x)
Modes(x)
}
\arguments{
\item{x}{vector from which to retrieve the mode from.}
}
\value{
same class as 'x'.
same class as 'x'.
}
\description{
This function returns the mode of a vector. If the vector contains a character or factor, the most common character/factor is returned. Numbers written as characters will be compatible with non-character numbers (i.e. doubles/numeric), but the function returns a character.
This function returns the mode of a vector. If the vector contains a character or factor, the most common character/factor is returned. Numbers written as characters will be compatible with non-character numbers (i.e. doubles/numeric), but the function returns a character.
% Please edit documentation in R/FarmDynR backup.R, R/FarmDynR.R
\name{gdxreshape}
\alias{gdxreshape}
\title{Reshape from wide to long and save to GDX}
\usage{
gdxreshape(
inDF,
symDim,
symName = NULL,
tName = "time",
gdxName = NULL,
setsToo = TRUE,
order = NULL,
setNames = NULL
)
gdxreshape(
inDF,
symDim,
...
...
@@ -33,9 +44,14 @@ gdxreshape(
\item{setNames}{wide dataframe.}
}
\value{
A tibble `tbl_df`.
A tibble `tbl_df`.
}
\description{
`gdxreshape()` formats the data to be saved in GDX into long format. It is imported from the gdxrrw package with a few improvements for performance and usability, since there is a risk of it being removed from the gdxrrw package in the future.
We would like to thank the R GAMS team for this useful function.
`gdxreshape()` formats the data to be saved in GDX into long format. It is imported from the gdxrrw package with a few improvements for performance and usability, since there is a risk of it being removed from the gdxrrw package in the future.
We would like to thank the R GAMS team for this useful function.
}
...
...
@@ -43,8 +59,18 @@ We would like to thank the R GAMS team for this useful function.