checkData {goCluster} | R Documentation

## Checks if a variable contains data.

### Description

This function exits with a warning or an error in case a given variable does contain data.

### Usage

    checkData(variable, action, call, warn = FALSE)

### Arguments

`variable` | The variable that should be checked.
`action` | Part of the error string.
`call` | Part of the error string.
`warn` | If true, the function will not yield an error but a warning.

### Value

TRUE or FALSE in addition to a warning or an error.

### Author(s)

Gunnar Wrobel, http://www.gunnarwrobel.de.

### Examples

    a <- c(1,2,3)
    checkData(a, "set", "example", TRUE)

[Package goCluster version 1.0.3 Index]