R - Attribute of an object

Card Puncher Data Processing

Example

Attribute of a Data Frame

attributes(sw)
$names
[1] "Fertility"   "Agriculture" "Examination" "Education"  

$row.names
[1] "Courtelary"   "Delemont"     "Franches-Mnt" "Moutier"      "Neuveville"  

$class
[1] "data.frame"

where:





Discover More
Card Puncher Data Processing
R - Class

A class is just an attribute of an object. You can remove the attribute with the function . The class with then become the type A list can have different class. unclass returns (a copy of) its...



Share this page:
Follow us:
Task Runner