sum.td.data.frame: Sum of column

Description Usage Arguments Details Value Examples

View source: R/sum.td.data.frame.R

Description

sum returns the sum of all the values present in a column.

Usage

1
2
## S3 method for class 'td.data.frame'
sum(tdf, ...)

Arguments

tdf

td data frame.

...

conform to generic sum.

Details

This is an override of the generic sum function. Acces the Teradata system and return the sum of a particular column or columns.

Value

A numeric value of the sum.

Examples

1
2
3
4
## Not run: 
sum(tdf[1:5])  #total sum of 5 columns from td data frame

## End(Not run)

nonsleepr/teradataR documentation built on May 23, 2019, 9:32 p.m.