| Group: | Handling of time |
| Topic: | Generating timepoints |
| See also: | settime |
| Function: | filltime | |
| Description: | generates vector of time points starting from t with length n and granulation gran (default month). The difference between two timepoints is given by step. |
| Usage: | v = filltime (t, length {, gran {, step}}) | |
| Input: | ||
| t | scalar timepoint | |
| length | scalar number of elements in u | |
| gran | granularity | |
| step | scalar difference between two timepoints | |
| Output: | ||
| u | length x 1 time vector | |
t = settime(1970,1,1) v = filltime(t,12) nmonth(v)~nyear(v)
Contents of _tmp [ 1,] 1 1970 [ 2,] 2 1970 [ 3,] 3 1970 [ 4,] 4 1970 [ 5,] 5 1970 [ 6,] 6 1970 [ 7,] 7 1970 [ 8,] 8 1970 [ 9,] 9 1970 [10,] 10 1970 [11,] 11 1970 [12,] 12 1970
t = settime(1970,1,1) v = filltime(t,12,6,2) nmonth(v)~nyear(v)
Contents of _tmp [ 1,] 1 1970 [ 2,] 3 1970 [ 3,] 5 1970 [ 4,] 7 1970 [ 5,] 9 1970 [ 6,] 11 1970 [ 7,] 1 1971 [ 8,] 3 1971 [ 9,] 5 1971 [10,] 7 1971 [11,] 9 1971 [12,] 11 1971
| Group: | Handling of time |
| Topic: | Generating timepoints |
| See also: | settime |