summarizeByPK: Summarize values by Primary Key

View source: R/summaryByPK.R

summarizeByPKR Documentation

Summarize values by Primary Key

Description

Summarize values by Primary Key

Usage

summarizeByPK(x, pk, collapse = "|")

Arguments

x

a data.frame

pk

columns containing the Primary Key (column names or indexes)

collapse

characters to collapse non numeric values passed to paste function

Value

a data.frame with a unique value for each PK. Mean for numeric values and a collapsed values for no numeric variables.


jmaspons/dbTools documentation built on March 10, 2024, 7:30 p.m.