getTimesSubset

0th

Percentile

Forms a subset of responses in data that contains their values for the nominated times

Forms a subset of responses in data that contains their values for the nominated times.

Keywords
manip, data
Usage
getTimesSubset(responses, times.factor = "Days", data, which.times, 
               suffix = NULL, include.times.factor = FALSE, 
               include.individuals = FALSE, individuals = "Snapshot.ID.Tag")
Arguments
responses

A character giving the names of the columns in data whose values are to be subsetted.

times.factor

A character giving the name of the column in data containing the factor for times at which the data was collected. Its levels will be used to identify the subset and should be numeric values stored as characters.

data

A data.frame containing the column from which the growth rates are to be calculated.

which.times

A vector giving the times that are to be selected.

suffix

A character giving the suffix to be appended to responses to form the names of the columns containing the subset.

include.times.factor

A logical indicating whether or not to include the times.factor in the result, the name in the result having the suffix with a separating full appended.

include.individuals

A logical indicating whether or not to include the individuals column in the result.

individuals

A character giving the name of the column in data containing an identifier for each individual.

Value

A data.frame containing the subset of responses ordered by as many of the initial columns as are required to uniquely identify each row (see order for more information). The names of the columns for responses and times.factor in the subset are the concatenation of their names in data and suffix separated by a full stop.

Aliases
  • getTimesSubset
Examples
# NOT RUN {
data(exampleData)
AreaLast <- getTimesSubset("Area.smooth", data = longi.dat, 
                           which.times = c(42), suffix = "last")
# }
Documentation reproduced from package growthPheno, version 1.0-13, License: GPL (>= 2)

Community examples

Looks like there are no examples yet.