coerceObj-methods: Method coerceObj.

Description Usage Arguments

Description

Cast an object to a different format, by extracting and returning the most appropriate information. Note that data.frames can be coerced to one of the classes defined in the mutSignatures package using coerceObj.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
coerceObj(x, to, ...)

## S4 method for signature 'mutFrameworkParams,character'
coerceObj(x, to)

## S4 method for signature 'mutationSignatures,character'
coerceObj(x, to)

## S4 method for signature 'mutationCounts,character'
coerceObj(x, to, ...)

## S4 method for signature 'mutSignExposures,character'
coerceObj(x, to, ...)

## S4 method for signature 'data.frame,character'
coerceObj(x, to, ...)

Arguments

x

an object to coerce to a different format

to

string, indicates the expected format (such as list or data.frame)

...

additional parameters passed to the functions used for the coercion


mutSignatures documentation built on Nov. 9, 2020, 9:06 a.m.