You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This pair of functions will set the intervals for a PKNCAdata object and verify that the intervals are valid, given the object.
set_intervals <- function(data, intervals) {} will take in two objects, the PKNCAdata object and the proposed intervals. It will then check that the intervals are valid, given the data object. If the intervals are valid, it will set them in the object. It will return the data object with the intervals set.
assert_intervals <- function(intervals, data) {} will verify that an interval definition is valid for a PKNCAdata object. Valid means that intervals are a data.frame (or data.frame-like object), that the column names are either the groupings of the PKNCAconc part of the PKNCAdata object or that they are one of the NCA parameters allowed (i.e. names(get.interval.cols())). It will return the intervals argument unchanged, or it will raise an error.
set_intervals() will be called to set the intervals within PKNCAdata(); assert_intervals() should be called both within set_intervals() and in assert_PKNCAdata() (see #328).
The text was updated successfully, but these errors were encountered:
This pair of functions will set the intervals for a
PKNCAdata
object and verify that the intervals are valid, given the object.set_intervals <- function(data, intervals) {}
will take in two objects, the PKNCAdata object and the proposed intervals. It will then check that the intervals are valid, given the data object. If the intervals are valid, it will set them in the object. It will return thedata
object with the intervals set.assert_intervals <- function(intervals, data) {}
will verify that an interval definition is valid for aPKNCAdata
object. Valid means that intervals are a data.frame (or data.frame-like object), that the column names are either the groupings of thePKNCAconc
part of thePKNCAdata
object or that they are one of the NCA parameters allowed (i.e.names(get.interval.cols())
). It will return theintervals
argument unchanged, or it will raise an error.set_intervals()
will be called to set the intervals withinPKNCAdata()
;assert_intervals()
should be called both withinset_intervals()
and inassert_PKNCAdata()
(see #328).The text was updated successfully, but these errors were encountered: