cldsLong: ~ Function: cldsLong ~

Description Usage Arguments Details Value Examples

View source: R/clds.R

Description

Turn trajectories in long format into an object of class Clds.

Usage

1
  cldsLong(trajLong)

Arguments

trajLong

[data.frame]: the trajectories, in long format. The trajectories have to have (no choice) th following format: the first column is the identifier; the second is the time measurement ; the third is the values.

Details

Turn trajectories in long format into an object of class Clds-class.

Value

Object of class Clds.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
### Some artificial data
g <- function(x)dnorm(0:100,runif(1,25,75),10)*rnorm(1,5,1)
dn <- data.frame(id=rep(1:200,each=101),
   times=rep((0:100)/10,times=20),
   traj=as.numeric(sapply(1:200,g))
)

### clds format
myClds <- cldsLong(dn)
plotTraj(myClds)

kmlShape documentation built on May 29, 2017, 10:19 a.m.