Learn R Programming

imageData (version 0.1-21)

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

Description

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

Usage

getDates(responses, times.factor = "Days", data, which.times, suffix = NULL, include.times.factor = FALSE)

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.

Value

data.frame containing the subset of responses, the names of the columns being the concatenation of responses and suffix separated by a full stop.

Examples

Run this code
data(exampleData)
AreaLast <- getDates("Area.smooth", data = longi.dat, 
                     which.times = c(42), suffix = "last")

Run the code above in your browser using DataLab