# The nrow argument can be omitted:
new_tibble(list(a = 1:3, b = 4:6))
# Existing row.names attributes are ignored:
try(validate_tibble(new_tibble(trees, nrow = 3)))
# The length of all columns must be compatible with the nrow argument:
try(validate_tibble(new_tibble(list(a = 1:3, b = 4:6), nrow = 2)))
Run the code above in your browser using DataLab