format_bp: Format a number of base pairs using the most appropriate...

View source: R/data_manip_utils.R

format_bpR Documentation

Format a number of base pairs using the most appropriate unit.

Description

Format a number of base pairs using the most appropriate unit.

Usage

format_bp(x)

Arguments

x

A numeric vector representing numbers of base pairs.

Value

A character vector containing string representations of the number of base pairs, using appropriate SI prefixes.

Examples


format_bp(c(100, 1000, 1e6))


DarwinAwardWinner/rctutils documentation built on July 22, 2022, 5:19 a.m.