Learn R Programming

mapfit (version 1.0.0)

data.frame.map.group: Create group data for map

Description

Provide the data.frame for group data.

Usage

data.frame.map.group(counts, breaks, intervals, instants)

Value

A dataframe

Arguments

counts

A vector of the number of samples

breaks

A vector of break points

intervals

A vector of differences of time

instants

A vector meaning whether a sample is observed at the end of break.

Examples

Run this code
t <- c(1,1,1,1,1)
n <- c(1,3,0,0,1)

dat <- data.frame.map.group(counts=n, intervals=t)
mean(dat)
print(dat)

Run the code above in your browser using DataLab