File: stats-blockStart.Rd

package info (click to toggle)
r-cran-timedate 3012.100-2
  • links: PTS
  • area: main
  • in suites: stretch
  • size: 2,592 kB
  • ctags: 4
  • sloc: makefile: 13
file content (71 lines) | stat: -rw-r--r-- 1,138 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
\name{blockStart}


\title{Equally sized 'timeDate' Blocks}


\alias{blockStart}
\alias{blockEnd}


\description{
  
  Creates start (end) dates for equally sized 'timeDate' blocks.
  
}


\usage{
blockStart(x, block = 20)
blockEnd(x, block = 20)
}


\arguments{
  
  \item{block}{
    an integer value specifying the length in number of records
    for numerically sized blocks of dates.
  }
  \item{x}{
    an object of class \code{timeDate}.
  }
  
}


\details{

  The functions \code{blockStart} and \code{blockEnd} create vectors 
  of start and end values for equally sized 'timeDate' blocks. Note,
  the functions are event counters and not a time counter between
  measuring time intervals between start and end dates! For equally 
  sized blocks in time one has before to align the time stamps in equal 
  time differences.
  
}


\value{
  
  returns an object of class \code{"timeDate"}.
  
}


\examples{  
## timeSequence
   # 360 Days Series:
   tS <- timeSequence(length.out = 360)
    
## blockStart | blockEnd -
   Start <- blockStart(tS, 30)
   End <- blockEnd(tS, 30)
   Start
   End
   End-Start
}


\keyword{chron}