Search notes:

R function: class

class returns the values of the class attribute of an R object.
class(NA)
# [1] "logical"

class(as.Date('2015-03-12'))
# [1] "Date"

class("foo")
# [1] "character"

class(letters[1:5])
# [1] "character"

class(data.frame(c1=1:2, c2=letters[1:2]))
# [1] "data.frame"

class(noquote("foo"))
# [1] "noquote"

class( typeof )
# [1] "function"

class( function(x) { x*x} )
# [1] "function"

x<-1:5
y<-x^2
class( x~y )
# [1] "formula"
Github repository about-r, path: /functions/class.R

See also

R: class
Exploring R objects
typeof(…), mode(…)
unclass
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...', 1758200741, '216.73.216.150', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/development/languages/R/functions/class(80): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78