You can also use the length function to create a vector for all rows in a vector/dataframe without having to hard code a length. The example below left-aligns all the columns in the mtcars data frame no matter the length.
kable(mtcars, align=rep('l', length(mtcars[,1])))