R: isempty Property

isempty {pracma} | R Documentation

## isempty Property

### Description

Determine if an object is empty.

### Usage

    isempty(x)

### Arguments

`x` | an R object

### Details

An empty object has length zero.

### Value

`TRUE` if `x` has length 0; otherwise, `FALSE`.

### Examples

    isempty(c(0))            # FALSE
    isempty(matrix(0, 1, 0)) # TRUE

[Package pracma version 2.0.4 Index]