search for: remove2ndcol

Displaying 1 result from an estimated 1 matches for "remove2ndcol".

2009 Oct 21
0
"eliminate" characters of one data.frame col, using another column
...f f 2 hhhh j h 3 jjjj g g I want the result: ff hhh jjjj I can get what I want using the code below. But it's slow for big files (which I have) and most likely there's a better way to do this 1) is there a function that would do the same as FUN.remove2ndCol 2) is there a way to avoid the "apply" for every row? Thanks, Tiago ################################### dfIn <- data.frame(a=c('ffff', 'hhhh', 'jjjj'), b=c('f', 'j', 'g'), c=c('f', 'h', 'g')) FUN.remove2ndCol &...