hasIds: IDs of an aspect

hasIdsR Documentation

IDs of an aspect

Description

This function checks, if an aspect has IDs that may be referenced by other aspects.

By default aspects don't have IDs, so only the implemented classes have IDs. Aspects with IDs will be considered in the meta-data aspect to determine properties like: idCounter and elementCount.

Usage

hasIds(aspect)

## Default S3 method:
hasIds(aspect)

## S3 method for class 'NodesAspect'
hasIds(aspect)

## S3 method for class 'EdgesAspect'
hasIds(aspect)

## S3 method for class 'CyGroupsAspect'
hasIds(aspect)

## S3 method for class 'CySubNetworksAspect'
hasIds(aspect)

Arguments

aspect

an object of one of the aspect classes (e.g. NodesAspect, EdgesAspect, etc.)

Details

Uses method dispatch, so the default return is FALSE and only aspect classes with IDs are implemented. This way it is easier to extend the data model.

Value

logical

See Also

idProperty(), refersTo(), referredBy(), maxId()

Examples

edges = createEdges(source = c(0,0), target = c(1,2))
hasIds(edges)

frankkramer-lab/RCX documentation built on Feb. 4, 2023, 5:12 p.m.