| score {scope} | R Documentation |
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.
score(scope, ...)
scope |
A scope object, e.g. created by scope(). |
... |
extra arguments, currently unused. |
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.
A vector of integers, representing numbers of row names per element in a scope object.
data(Theoph) #Consider rows within Subject. S <- scope(Theoph,'Subject') #How many row names in scope, per row? min(score(S)) max(score(S))