The R Project SVN R

Rev

Rev 72509 | Rev 78627 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 72509 Rev 76161
Line 142... Line 142...
142
inherits(x, "a", TRUE) # 1
142
inherits(x, "a", TRUE) # 1
143
inherits(x, c("a", "b", "c"), TRUE) # 1 2 0
143
inherits(x, c("a", "b", "c"), TRUE) # 1 2 0
144
 
144
 
145
class( quote(pi) )           # "name"
145
class( quote(pi) )           # "name"
146
## regular calls
146
## regular calls
147
class( quote(sin(pi*x)) )    # "class"
147
class( quote(sin(pi*x)) )    # "call"
148
## special calls
148
## special calls
149
class( quote(x <- 1) )       # "<-"
149
class( quote(x <- 1) )       # "<-"
150
class( quote((1 < 2)) )      # "("
150
class( quote((1 < 2)) )      # "("
151
class( quote( if(8<3) pi ) ) # "if"
151
class( quote( if(8<3) pi ) ) # "if"
152
}
152
}