valueCoordinates: Coordinates of X values in a data.table|data.frame

View source: R/valueCoordinates.R

valueCoordinatesR Documentation

Coordinates of X values in a data.table|data.frame

Description

Sometimes knowing NAs or X value are present in your data is not enough, you want to know where exactly.

Usage

valueCoordinates(obj, value = NA)

Arguments

value

[type: ANY, default: NA]

dt

[type: data.table | data.frame]

Details

This function does:

data == value | is.na(data)

To create a truth table and then retrieves the column and row of where the value occurred as a data.frame.

Value

data.frame

Examples

test <- head(iris, 10)
test[3, 1] <- NA

valueCoordinates(test, value = NA)


CoarfaBCM/derecksLabTools documentation built on April 3, 2022, 10:29 p.m.