fill_NA_using_formula {tidybulk} | R Documentation

## This function is needed for DE in case the matrix is not rectangular, but includes NA

### Description

This function is needed for DE in case the matrix is not rectangular, but includes NA

### Usage

    fill_NA_using_formula(
      .data,
      .formula,
      .sample = NULL,
      .transcript = NULL,
      .abundance = NULL,
      .abundance_scaled = NULL
    )

### Arguments

`.data` | A tibble
`.formula` | a formula with no response variable, of the kind ~ factor_of_interest + batch
`.sample` | The name of the sample column
`.transcript` | The name of the transcript/gene column
`.abundance` | The name of the transcript/gene abundance column
`.abundance_scaled` | The name of the transcript/gene scaled abundance column

### Value

A tibble with adjusted counts

[Package tidybulk version 1.4.0 Index]