Learn R Programming

SomaticSignatures (version 2.8.4)

variants-utils: Utility functions

Description

Utility functions

Usage

dfConvertColumns(x, from = "character", to = "factor")

Arguments

x
A 'data.frame' to convert [required].
from
The class of the columns to be converted [default: 'character'].
to
The class of the columns to be converted to [default: 'factor'].

Value

A 'data.frame' object.

Details

The 'dfConvertColumns' converts all columns of a data frame with class 'from' to the class 'to'.