fill_missing-methods: Fill feature value if missing from element-feature pairs

fill_missingR Documentation

Fill feature value if missing from element-feature pairs

Description

fill_missing() takes as input a 'tbl' formatted as | <element> | <feature> | <value> | <...> | and returns a 'tbl' with an edditional adjusted value column. This method uses scaled counts if present.

Usage

fill_missing(.data, .element, .feature, .value, fill_with)

## S3 method for class 'spec_tbl_df'
fill_missing(.data, .element, .feature, .value, fill_with)

## S3 method for class 'tbl_df'
fill_missing(.data, .element, .feature, .value, fill_with)

Arguments

.data

A 'tbl' formatted as | <element> | <feature> | <value> | <...> |

.element

The name of the element column

.feature

The name of the feature/gene column

.value

The name of the feature/gene value column

fill_with

A numerical value with which fill the mssing data points

Details

\lifecycle

maturing

This function fills the value of missing element-feature pair using the median of the element group defined by the formula

Value

A 'tbl' non-sparse value

A 'tbl' with filled abundance

A 'tbl' with filled abundance

Examples


fill_missing(mtcars_tidy, car_model, feature, value, fill_with = 0)



stemangiola/nanny documentation built on July 29, 2023, 1:23 a.m.