count: Count the number of rows in a query.

Description Usage Arguments Value Examples

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
5
cnx <- connect("http://jacaton-r.herokuapp.com", "demo", "1234") 
off <- resource(cnx, "oficinas") 

count(off)
count(off, conditions=buildCondition("nombre", "!=", "Seville")  )

SevillaR/HivepodR documentation built on May 9, 2019, 1:23 p.m.