Thanks for helpful replies. Unfortunately, I didn't mention that I
want to overwrite the existing data frame with the corrected one using
the same name. Here's what I have:
## get names of data frames
frames <- names(Filter(function(x) x=="data.frame",
sapply(objects(),function(
lucy b wrote:
>
> I have a workspace containing only data frame objects. I would like to
> loop though each one and clean-up text columns in them. How can I have
> R loop through the list? I have tried to find an answer in R help but
> the closest solution I can find is to make a static list of
On Monday 03 March 2008 (23:28:05), lucy b wrote:
> I would like to avoid having to type-out a very long list over and
> over again. I have tried every variation I could think of similar to:
>
> for(df in list(noquote(ls( {
>
> do stuff with df
>
> }
>
> I know this has to be possible
All,
I have a workspace containing only data frame objects. I would like to
loop though each one and clean-up text columns in them. How can I have
R loop through the list? I have tried to find an answer in R help but
the closest solution I can find is to make a static list of data
frames, as illus
4 matches
Mail list logo