search for: resortcombinedfields

Displaying 3 results from an estimated 3 matches for "resortcombinedfields".

2008 Nov 25
1
Efficient passing through big data.frame and modifying select
...t; > > > In order to enable merging/duplicate identification of columns > > containing these strings, I wrote the following function, which > > passes through the rows one by one, identifies ";"-containing cells, > > splits and resorts them. > > > > ResortCombinedFields <- function(dframe){ > > if(!is.data.frame(dframe)){ > > stop("\"ResortCombinedFields\" input needs to be a data frame.") > > } > > for(row in seq(nrow(dframe))){ > > for(mef in grep(";",dframe[row,])){ > > I needed to a...
2008 Nov 25
0
Efficient passing through big data.frame and modifying select fields
..."some;thing" >frame2[2,1] [2] "thing;some" In order to enable merging/duplicate identification of columns containing these strings, I wrote the following function, which passes through the rows one by one, identifies ";"-containing cells, splits and resorts them. ResortCombinedFields <- function(dframe){ if(!is.data.frame(dframe)){ stop("\"ResortCombinedFields\" input needs to be a data frame.") } for(row in seq(nrow(dframe))){ for(mef in grep(";",dframe[row,])){ dframe[row,mef] <- paste(sort(unlist(strsplit(dframe[row,mef...
2009 Mar 09
5
Help
...;>> > containing these strings, I wrote the following function, which > > >>> > passes through the rows one by one, identifies ";"-containing > cells, > > >>> > splits and resorts them. > > >>> > > > >>> > ResortCombinedFields <- function(dframe){ > > >>> > if(!is.data.frame(dframe)){ > > >>> > stop("\"ResortCombinedFields\" input needs to be a data frame.") > > >>> > } > > >>> > for(row in seq(nrow(dframe))){ > > &...