parse.label.header {SIAMCAT} | R Documentation

## Parse label header

### Description

This function parses the header of a label file

### Usage

    parse.label.header(label.header)

### Arguments

`label.header` | - string in the format: #<TYPE>:<L1>=<class1>; <L2>=<class2>[;<L3>=<class3>] where <TYPE> is a string specifying the type of label variable such as BINARY (for binary classification), CATEGORICAL (for multi-class classification), or CONTINUOUS (for regression) <L1> is a short numeric label for the first class with description <class1> (similarly for the other classes)

### Value

a list with tow items

- `$type` type of the label: BINARY CONTINUOUS or CATEGORICAL

- `$class.descr` lables and information on what do they mean

[Package SIAMCAT version 1.4.0 Index]