c_prepare {dropout}R 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).


[Package dropout version 2.2.0 Index]