Lumenize
Lumenize copied to clipboard
R function data.frame()
The data.frame() function takes a list (of columns) where each element in the list is a vector (data set). Each vector is the same length.
myFamily <- data.frame(myFamilyNames, myFamilyAges, myFamilyGenders, myFamilyWeights)
A dataframe outputs as a table where the vector names are the column labels and each row is numbered.
I'm not following. Can you add a more detailed example?
Here is a data.frame called mtcars.
