score {scope}R Documentation

Calculate Lengths of Elements for a Scope Object

Description

For each row represented by a scope object, give the number of row names that are ‘in scope’: i.e. the lengths of the per-row vectors.

Usage

score(scope, ...)

Arguments

scope A scope object, e.g. created by scope().
... extra arguments, currently unused.

Details

This is a useful analytical tool, e.g., for checking whether previous calls to scope() have limited per-row scopes to exactly one row name (a condition expected by scoop()). At present, score() merely calls sapply() and assigns names to the result.

Value

A vector of integers, representing numbers of row names per element in a scope object.

See Also

scope, skim, scoop, probe

Examples

data(Theoph)
#Consider rows within Subject.
S <- scope(Theoph,'Subject')
#How many row names in scope, per row?
min(score(S))
max(score(S))

[Package scope version 2.2 Index]