Skip to content
Back to formatted view

Raw Message

Message-ID: <1054312474.20808.41.camel@xeon>
Date: 2003-05-30T16:34:48Z
From: Michaell Taylor
Subject: How to remove a complete dataframe column
In-Reply-To: <114104136437.20030530165107@power.inescn.pt>

or, if you no longer want the columns and don't want to create more
objects, you could:

rtu$Ri <- NULL

On Fri, 2003-05-30 at 11:51, Mark Marques wrote:
> 
> I am using dataframes and I and I want to delete (remove) a specific
> column by name ...
> the data frame has 14 columns with several names and only need some.
> I tried to overwrite the columns with a single value but that in not very
> clean as I need to export the data to file.
> The rm command gives me a warning message stating :
> < remove: variable "rtu$Ri." was not found >
> or there is another method to remove parts of a dataframe?
> thanks in advance
> Mark Marques
> 
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://www.stat.math.ethz.ch/mailman/listinfo/r-help