This function declares a pibble tibble with the attributes
pibble(..., .i = NULL, .t = NULL, .d = 1, .uniqcheck = FALSE)
A set of name-value pairs to make up the variables of a
Quoted or unquoted variable(s) that identify the individual cases. If this is omitted,
Quoted or unquoted variable indicating the time.
Number indicating the gap in
Logical parameter. Set to TRUE to perform a check of whether
.i, Quoted or unquoted variable(s) indicating the individual-level panel identifier
.t, Quoted or unquoted variable indicating the time variable
.d, a number indicating the gap
pibble() function is for the purpose of creating
pibble objects from scratch. You probably want
pibble does not require that
.t uniquely identify the observations in your data, but it will give a warning message (a maximum of once per session, unless
.uniqcheck=TRUE) if they do not.
# Creating a pibble from scratch pd <- pibble( i = c(1, 1, 1, 2, 2, 2), t = c(1, 2, 3, 1, 2, 2), x = rnorm(6), .i = i, .t = t ) is_pibble(pd)#>#>  TRUE# I set .d=0 here to indicate that I don't care how large the gap between one period and the next is # If I want to use 'seconds' for t. # See time_variable() to turn unruly variables into well-behaved integers, as well pd2 <- pibble( i = c(1, 1, 1, 2, 2, 2), seconds = c(123, 456, 789, 103, 234, 238), .i = i, .t = seconds, .d = 0 ) is_pibble(pd2)#>#>  TRUE