[R] Remove Columns by Name from zoo object

Sean Carmody seancarmody at gmail.com
Mon Nov 10 06:31:14 CET 2008


The tricks for removing columns specified by name from data frames such as

x$mycol <- NULL

(and others described here
http://wiki.r-project.org/rwiki/doku.php?id=tips:data-frames:remove_columns_by_name)
do not seem to work for a zoo object. Any suggestions as to how to do
this, or is my best bet to coerce to a data.frame, remove the column
and coerce back to zoo?

-- 
Sean Carmody

The Stubborn Mule
http://www.stubbornmule.net
http://twitter.com/seancarmody



More information about the R-help mailing list