new release

This commit is contained in:
Andreas Gammelgaard Damsbo 2025-10-27 10:28:22 +01:00
commit b9008543ee
No known key found for this signature in database
22 changed files with 1297 additions and 192 deletions

14
man/cut_methods.Rd Normal file
View file

@ -0,0 +1,14 @@
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/cut-variable-ext.R
\name{cut_methods}
\alias{cut_methods}
\title{Library of cut methods with descriptions}
\usage{
cut_methods()
}
\value{
vector
}
\description{
Library of cut methods with descriptions
}

View file

@ -75,4 +75,9 @@ mtcars$carb |>
as.factor() |>
cut_var(2) |>
table()
mtcars$carb |>
as.factor() |>
cut_var(20, "bottom") |>
table()
}

24
man/get_list_elements.Rd Normal file
View file

@ -0,0 +1,24 @@
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/cut-variable-ext.R
\name{get_list_elements}
\alias{get_list_elements}
\title{Subset elements from list of lists}
\usage{
get_list_elements(name, element, dict = cut_methods())
}
\arguments{
\item{name}{list name to lookup}
\item{element}{element to get}
\item{dict}{dictionary to use}
}
\value{
named vector
}
\description{
General function to sub-setting details stored in list dictionaries.
}
\examples{
get_list_elements(c("top", "bottom"), "descr")
}

20
man/names2val.Rd Normal file
View file

@ -0,0 +1,20 @@
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/cut-variable-ext.R
\name{names2val}
\alias{names2val}
\title{Set values as names and names as values}
\usage{
names2val(data)
}
\arguments{
\item{data}{data}
}
\value{
named vector
}
\description{
Set values as names and names as values
}
\examples{
names2val(c("Cylinders" = "cyl", "Transmission" = "am", "Gears" = "gear"))
}