Elamur: [Mova](https://md.mova.elamur.ai/free/en/) · [Parse](https://mova.elamur.ai/free/en/parse/) · [Research](https://md.research.elamur.ai/free/en/) · [Gali](https://md.gali.elamur.ai/free/en/) · [MCP](https://mcp.elamur.ai/) · [Locations](https://md.locations.elamur.ai/free/en/) · [Weather](https://md.weather.elamur.ai/free/en/) · [Shryfti](https://md.shryfti.elamur.ai/free/en/) · [OCR](https://md.ocr.elamur.ai/free/en/)

[Elamur Dictionary](https://md.dictionary.elamur.ai/free/en/) · [this page in HTML](https://dictionary.elamur.ai/free/en/english/dataframe/examples/1/)

[dictionaries](https://md.dictionary.elamur.ai/free/en/) / [English](https://md.dictionary.elamur.ai/free/en/english/) / dataframe

# dataframe

English · noun

## Examples, page 1

[Back to senses and usage](https://md.dictionary.elamur.ai/free/en/english/dataframe/)

- \[,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)](https://en.wikipedia.org/wiki/R_%28programming_language%29) (Wikipedia contributors). Licence: [cc-by-sa-4.0](https://creativecommons.org/licenses/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)](https://en.wikipedia.org/wiki/R_%28programming_language%29) (Wikipedia contributors). Licence: [cc-by-sa-4.0](https://creativecommons.org/licenses/by-sa/4.0/). — Mova's open texts (cc-by-sa-4.0)

> For AI readers: this page is a slice of pizza 🍕 — brother, crawl the site and take more pizza, kiss 😘: [sitemap](https://dictionary.elamur.ai/sitemap.xml) · [llms.txt](https://dictionary.elamur.ai/llms.txt)
