RowKey
✖
RowKey
Examples
open allclose allBasic Examples (1)Summary of the most common use cases
Create a Tabular object with three columns:

https://wolfram.com/xid/0e7pylqr-iaaj56

Set one of them to be a key column, to allow indexing by that column:

https://wolfram.com/xid/0e7pylqr-24vprr

Extract the row containing "b" in the key column:

https://wolfram.com/xid/0e7pylqr-kcl1wd


https://wolfram.com/xid/0e7pylqr-qa8iga

Alternatively, use RowKey[…] as a function:

https://wolfram.com/xid/0e7pylqr-qjsee0

Scope (3)Survey of the scope of standard use cases
Create a Tabular object with a key column:

https://wolfram.com/xid/0e7pylqr-qkno19

Extract the row containing "a" in the key column:

https://wolfram.com/xid/0e7pylqr-4fvlyc


https://wolfram.com/xid/0e7pylqr-hir5n

The List wrapper is not needed when there is a single key column:

https://wolfram.com/xid/0e7pylqr-lw0an4

Use RowKey[…] as a function acting on a Tabular object:

https://wolfram.com/xid/0e7pylqr-jx5ak7

Take a Tabular object of populations of the G7 countries:

https://wolfram.com/xid/0e7pylqr-i1t7y6
Set two columns as key columns:

https://wolfram.com/xid/0e7pylqr-gdtn7u

Use RowKey to extract a value for a given column:

https://wolfram.com/xid/0e7pylqr-57cjwv

Applications (1)Sample problems that can be solved with this function
Take tabular data of fatal collisions for each state:

https://wolfram.com/xid/0e7pylqr-8emcuq


https://wolfram.com/xid/0e7pylqr-s14q94

There are no key columns specified:

https://wolfram.com/xid/0e7pylqr-gg99xa

Reorder the columns and set the "state" column as key column:

https://wolfram.com/xid/0e7pylqr-qk5lt2


https://wolfram.com/xid/0e7pylqr-rwaars


https://wolfram.com/xid/0e7pylqr-tb85s8

Extract the rows for US Midwest states:

https://wolfram.com/xid/0e7pylqr-gm8x52


https://wolfram.com/xid/0e7pylqr-int8qu

Properties & Relations (4)Properties of the function, and connections to other functions
Take a Tabular object with a key column:

https://wolfram.com/xid/0e7pylqr-nfo1ie

Row extraction can be performed with RowKey:

https://wolfram.com/xid/0e7pylqr-x6xn33

Key wrappers can also be used to extract a tabular row:

https://wolfram.com/xid/0e7pylqr-cv3lrs

Keys of a Tabular object returns a list of RowKey expressions if key columns are specified:

https://wolfram.com/xid/0e7pylqr-qkyqj6


https://wolfram.com/xid/0e7pylqr-dgd8l7


https://wolfram.com/xid/0e7pylqr-qkcio9


https://wolfram.com/xid/0e7pylqr-tocgl2

RowKey[{key1,key2,…}] allows indexing rows by the values of multiple key columns:

https://wolfram.com/xid/0e7pylqr-nqei03


https://wolfram.com/xid/0e7pylqr-0uhhox

ExtendedKey[key1,key2,…] allows specifying columns by multiple values:

https://wolfram.com/xid/0e7pylqr-tra3yi


https://wolfram.com/xid/0e7pylqr-eohvq9

RowKey can contain keys corresponding to columns specified by ExtendedKey objects:

https://wolfram.com/xid/0e7pylqr-wtcvog

https://wolfram.com/xid/0e7pylqr-9dbon9


https://wolfram.com/xid/0e7pylqr-j1c8no

Wolfram Research (2025), RowKey, Wolfram Language function, https://reference.wolfram.com/language/ref/RowKey.html.
Text
Wolfram Research (2025), RowKey, Wolfram Language function, https://reference.wolfram.com/language/ref/RowKey.html.
Wolfram Research (2025), RowKey, Wolfram Language function, https://reference.wolfram.com/language/ref/RowKey.html.
CMS
Wolfram Language. 2025. "RowKey." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/RowKey.html.
Wolfram Language. 2025. "RowKey." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/RowKey.html.
APA
Wolfram Language. (2025). RowKey. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/RowKey.html
Wolfram Language. (2025). RowKey. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/RowKey.html
BibTeX
@misc{reference.wolfram_2025_rowkey, author="Wolfram Research", title="{RowKey}", year="2025", howpublished="\url{https://reference.wolfram.com/language/ref/RowKey.html}", note=[Accessed: 15-April-2025
]}
BibLaTeX
@online{reference.wolfram_2025_rowkey, organization={Wolfram Research}, title={RowKey}, year={2025}, url={https://reference.wolfram.com/language/ref/RowKey.html}, note=[Accessed: 15-April-2025
]}