parsing of different form formats, move to bslib with new sidebar
Some checks failed
pkgdown.yaml / pkgdown (push) Has been cancelled

This commit is contained in:
Andreas Gammelgaard Damsbo 2024-11-14 14:29:46 +01:00
commit a576a580db
No known key found for this signature in database
12 changed files with 664 additions and 122 deletions

24
man/parse_prio_form.Rd Normal file
View file

@ -0,0 +1,24 @@
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/parse_formats.R
\name{parse_prio_form}
\alias{parse_prio_form}
\title{Parse input data with columns of priorities to columns of groups}
\usage{
parse_prio_form(data, id = 1, prio.cols, sort.cols = FALSE)
}
\arguments{
\item{data}{data.frame or tibble}
\item{id}{id column. Numeric index or column name. Default is 1.}
\item{prio.cols}{priority columns. Numeric indices or column names.}
\item{sort.cols}{flag to sort priority columns names/indices. Default=FALSE}
}
\value{
data.frame
}
\description{
This handles transforming data from a typical Google form to the format
compatible with \code{prioritized_grouping()}.
}

26
man/parse_string_form.Rd Normal file
View file

@ -0,0 +1,26 @@
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/parse_formats.R
\name{parse_string_form}
\alias{parse_string_form}
\title{Parse input data from column of strings with prioritised group names}
\usage{
parse_string_form(data, id = 1, string.col, pattern = NULL)
}
\arguments{
\item{data}{data.frame or tibble}
\item{id}{id column. Numeric index of column name. Default is 1.}
\item{string.col}{string column. Numeric index or column name.}
\item{pattern}{regex pattern to use for splitting priorities string with
\code{strsplit()}.
Default is ";".}
}
\value{
data.frame
}
\description{
This handles transforming data from a typical Microsoft form to the format
compatible with \code{prioritized_grouping()}.
}

View file

@ -13,7 +13,7 @@ prioritized_grouping(
)
}
\arguments{
\item{data}{data set in wide format. First column should bi ID, then one column
\item{data}{data set in wide format. First column should be ID, then one column
for each group containing cost/priorities.}
\item{cap_classes}{class capacity. Numeric vector length 1 or length=number