Learn R Programming

crunch (version 1.3.2)

is-na-categories: is.na for Categories

Description

is.na for Categories

Usage

## S3 method for class 'Categories':
is.na(x)

## S3 method for class 'Categories,character': is.na(x) <- value

## S3 method for class 'Categories,logical': is.na(x) <- value

## S3 method for class 'Category': is.na(x)

## S3 method for class 'Category,logical': is.na(x) <- value

Arguments

x
Categories or a single Category
value
To change the missingness of categories, supply either (1) a logical vector of equal length of the categories (or length 1 for the Category method), or (2) the names of the categories to mark as missing. If supplying the latter, any categories already ind

Value

  • Getters return logical, a named vector in the case of the Categories method; setters return x duly modified.