Search notes:

R function: rownames


m <- matrix(1:30, nrow=10)

rownames(m) <- LETTERS[1:10]
colnames(m) <- c('foo', 'bar', 'baz')

m
#   foo bar baz
# A   1  11  21
# B   2  12  22
# C   3  13  23
# D   4  14  24
# E   5  15  25
# F   6  16  26
# G   7  17  27
# H   8  18  28
# I   9  19  29
# J  10  20  30
Github repository about-r, path: /functions/rownames.R

See also

Index to (some) R functions

Index

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:78 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(78): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/developm...', 1758201035, '216.73.216.150', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/development/languages/R/functions/rownames(57): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78