get_field_inputtypes: Produce a Matrix of Field _inputTypes_ from the Custom...

View source: R/get_configuration.R

get_field_inputtypesR Documentation

Produce a Matrix of Field inputTypes from the Custom Project Configuration

Description

This function retrieves a matrix containing the inputTypes of all custom fields from a project configuration of an iDAI.field project.

Usage

get_field_inputtypes(
  config,
  inputType = "all",
  remove_config_names = TRUE,
  silent = FALSE
)

Arguments

config

A configuration list as returned by get_configuration()

inputType

If specified, matrix is filtered to return only the specified type.

remove_config_names

TRUE/FALSE: Should the name of the project be removed from field names of the configuration? (Default is TRUE.) (Should e.g.: test:amount be renamed to amount, see remove_config_names().)

silent

TRUE/FALSE, default: FALSE. Should messages be suppressed?

Value

A matrix of fields (with the given inputType).

See Also

  • get_configuration(), convert_to_onehot()

  • This function is used by: simplify_idaifield().

Examples

## Not run: 
conn <- connect_idaifield(serverip = "127.0.0.1",
                          pwd = "hallo",
                          project = "rtest")
config <- get_configuration(connection = conn)
checkboxes <- get_field_inputtypes(config, inputType = "checkboxes")

## End(Not run)

lsteinmann/idaifieldR documentation built on April 3, 2025, 2:06 p.m.