c_prepare: Prepare data for C API: list of row-vectors with NA...

View source: R/c_prepare.R

c_prepareR Documentation

Prepare data for C API: list of row-vectors with NA indicators

Description

This function prepares the data to be used by a C API by transforming each row of the dataframe into a vector of 0s and 1s, where 0 indicates a non-NA value and 1 indicates an NA value.

Usage

c_prepare(data)

Arguments

data

A dataframe to be prepared for the C API.

Value

A list of row-vectors, where each vector contains 0s (non-NA) and 1s (NA).


dropout documentation built on Nov. 2, 2024, 1:12 a.m.