count: Count the number of rows in a query.

Description Usage Arguments Value Examples

View source: R/count.R

Description

Returns the total count of rows in a query.

Usage

1
count(resource, conditions = NULL, distinct = NULL)

Arguments

resource

The resource to query.

conditions

A set of conditions to constraint the query on the server side. Use the function buildCondition() to create the conditions.0

distinct

Provides a distict criteria. (Not yet implemented)

Value

Returns the total count of rows in a query.

Examples

1
2
3
4
cnx <- connect('http://www.traitbase.info')
off <- resource(cnx, 'species')
count(off)
count(off, conditions=buildCondition('species', '!=', 'Bombus')  )

metadevpro/traitbaser documentation built on April 20, 2020, 10:52 p.m.