Skip to content
Prev 247732 / 398503 Next

dataframe: string operations on columns

Well, my solution with the loop might be slower (even though I don't see 
any difference with my system, at least with up to 100 lines and 3 
strings to separate), but it works whatever the number of strings.
But I should have renamed the columns outside of the loop:
names(df)[2:3] <- paste("a", 1:2, sep="")  ##or a more general solution 
for the indexes

Ivan


Le 1/19/2011 01:42, Niels Richard Hansen a ?crit :