mirror of
https://github.com/agdamsbo/prioritized.grouping.git
synced 2026-06-19 05:47:30 +02:00
parsing of different form formats, move to bslib with new sidebar
Some checks failed
pkgdown.yaml / pkgdown (push) Has been cancelled
Some checks failed
pkgdown.yaml / pkgdown (push) Has been cancelled
This commit is contained in:
parent
f26cf1c916
commit
a576a580db
12 changed files with 664 additions and 122 deletions
24
man/parse_prio_form.Rd
Normal file
24
man/parse_prio_form.Rd
Normal 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
26
man/parse_string_form.Rd
Normal 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()}.
|
||||
}
|
||||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue