bt.groupby: Summarizes a dataset column based upon common column...

View source: R/bt.groupby.R

bt.groupbyR Documentation

Summarizes a dataset column based upon common column groupings. Akin to the SQL "group by" command.

Description

Summarizes a dataset column based upon common column groupings. Akin to the SQL "group by" command.

Usage

bt.groupby(
  i,
  g = NULL,
  c = NULL,
  o = NULL,
  full = NULL,
  inheader = NULL,
  outheader = NULL,
  header = NULL,
  ignorecase = NULL,
  prec = NULL,
  delim = NULL,
  output = NULL
)

Arguments

i

<bed/gff/vcf/bam>

g

<group columns>

c

<op. column>

o

<operation>

full

Print all columns from input file. The first line in the group is used. Default: print only grouped columns.

inheader

Input file has a header line - the first line will be ignored.

outheader

Print header line in the output, detailing the column names. If the input file has headers (-inheader), the output file will use the input's column names. If the input file has no headers, the output file will use "col_1", "col_2", etc. as the column names.

header

same as '-inheader -outheader'

ignorecase

Group values regardless of upper/lower case.

prec

Sets the decimal precision for output (Default: 5)

delim

Specify a custom delimiter for the collapse operations. - Example: -delim "|" - Default: ",".

output

Output filepath instead of returning output in R.


PhanstielLab/bedtoolsr documentation built on Aug. 29, 2024, 5:37 p.m.