Learn R Programming

baseq (version 0.2.0)

gc_content: GC Content

Description

Calculates the percentage of G and C bases in a DNA sequence.

Usage

gc_content(s)

Value

Numeric percentage of GC content

Arguments

s

A character string containing the sequence

Examples

Run this code
data(sars_fragment)
gc_content(sars_fragment)

Run the code above in your browser using DataLab