$columns that I added to a data frame don't have attr(*, "label")

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

$columns that I added to a data frame don't have attr(*, "label")

Brandon Payne
How can I make $size and $stock
(that I made)

have attr()   like the $columns that came with the data

$ CLUSTER         :Classes 'labelled', 'integer'  atomic [1:90435] 4 4 4 4
4 4 4 4 4 4 ...
  .. ..- attr(*, "label")= Named chr "Socio-economic level of locality"
  .. .. ..- attr(*, "names")= chr "CLUSTER"
 $ size            : chr  "largest" "largest" "largest" "largest" ...
 $ stock           : num  596 596 596 596 596 ...

        [[alternative HTML version deleted]]

_______________________________________________
R-sig-Geo mailing list
[hidden email]
https://stat.ethz.ch/mailman/listinfo/r-sig-geo
Loading...