Search notes:

R: lists

Lists can be created using list()

Heterogeneous

Lists can contain elements of differing type, that is: they have different modes.
Thus, lists are also referred as generic vectors (rather than atomic vectors which are homogeneous).

Data frames

A data frame is a list whose elements are vectors or factors. These vectors/factors (obviously) have the same length. They correspond to columns of a table. Each element (= column) has a name.

Indexing

Elements in a list can be accessed by three different indexing operations.

Iterating over elements in a list

The apply function family is R's preferred way to call a function on each element of a vector or a list.

See also

unlist(…) to turn a vector into a list.

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...', 1745458643, '18.119.29.162', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/development/languages/R/data-structures/list(59): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78