Search notes:

R function: as.table


m <- matrix( c(  5, 1, 3,
                 9, 2, 8,
                 1, 5, 7
              ),
              nrow=3 )

colnames(m) = c("foo" , "bar" , "baz" )
rownames(m) = c("oone", "twoo", "thri")

t <- as.table(m)

t
#      foo bar baz
# oone   5   9   1
# twoo   1   2   5
# thri   3   8   7
Github repository about-r, path: /functions/as.table.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...', 1758200823, '216.73.216.150', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/development/languages/R/functions/as_table(56): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78