dataframe
English · noun
Examples, page 1
- [,1] [,2] [,3] [1,] 2 10 22 [2,] 38 58 82 # z_matrix, with row names 'A' and 'B' > new_df <- data.frame(t(z_matrix), row.names = c("A", "B")) > names(new_df) <- c("X", "Y", "Z") # Set the column names of the new_df dataframe as X, Y, and Z. — Wikipedia: R (programming language) (Wikipedia contributors). Licence: cc-by-sa-4.0. — Mova's open texts (cc-by-sa-4.0)
- [1] TRUE > attributes(new_df) # Print information about attributes of the new_df dataframe $names [1] "X" "Y" "Z" $row.names [1] "A" "B" $class [1] "data.frame" > attributes(new_df)$row.names <- c("one", "two") # Access and then change the row.names attribute; this can also be done using the rownames() function > new_df X Y Z one 2 6 12 two 20 30 42 — Wikipedia: R (programming language) (Wikipedia contributors). Licence: cc-by-sa-4.0. — Mova's open texts (cc-by-sa-4.0)
This page in Markdown https://md.dictionary.elamur.ai/free/en/english/dataframe/examples/1/