daypart_dummies.Rd
This function returns either NULL
(if measurements_per_day
is 0 or 1) or a matrix of dummy variables for the specified input configuration.
daypart_dummies(number_of_rows, measurements_per_day)
number_of_rows | the number of rows in the input data set. |
---|---|
measurements_per_day | the number of measurements per day in the input data set. |
Either NULL
or a matrix with number_of_rows
rows and measurements_per_day - 1
columns.
#> dailymeas_1 dailymeas_2 #> [1,] 1 0 #> [2,] 0 1 #> [3,] 0 0 #> [4,] 1 0 #> [5,] 0 1 #> [6,] 0 0 #> [7,] 1 0 #> [8,] 0 1 #> [9,] 0 0 #> [10,] 1 0