Skip to contents

Predict from a clanc

Usage

# S3 method for class 'clanc'
predict(object, new_data, type, assay = NULL, format = c("wide", "tall"), ...)

Arguments

object

A clanc object.

new_data

A data frame or matrix of new predictors.

type

A single character. The type of predictions to generate. Valid options are:

  • "numeric" for numeric predictions.

assay

If object inherits SummarizedExperiment, the index of the assay.

format

Character. Are the data "wide" (default), with genes as columns, or "tall", with genes as rows?

...

Not used, but required for extensibility.

method

If type is numeric, the method of correlation

Value

A tibble of predictions. The number of rows in the tibble is guaranteed to be the same as the number of rows in new_data.