search for: match_df

Displaying 5 results from an estimated 5 matches for "match_df".

Did you mean: match_
2013 Jan 24
2
Question on matrix calculation
Hello again, Ley say I have 1 matrix and 1 data frame: > mat <- matrix(1:15, 5) > match_df <- data.frame(Seq = 1:5, criteria = sample(letters[1:5], 5, replace = T)) > mat [,1] [,2] [,3] [1,] 1 6 11 [2,] 2 7 12 [3,] 3 8 13 [4,] 4 9 14 [5,] 5 10 15 > match_df Seq criteria 1 1 c 2 2 e 3 3 c 4 4 c 5...
2017 Jul 01
0
How to replace match words whith colum name of data frame?
...ormul", "nanoparticl", "size abras particl", "agent malic acid")) chemical_df <- data.frame(chemical=c("basic", "alkalin", "alkali", "acid", " ph ", "hss")) Here is my match code: library(magrittr) match_df <- NULL for (i in 1:length(chemical_df$chemical)) { match_df<-data.frame(category=concept_df[grep(chemical_df$chemical[i], concept_df$concept), ] ) %>% rbind(match_df) } But I don't want this result: concept category 1 butan acid...
2017 Jul 01
0
How to replace match words whith colum name of data frame?
...ize abras particl", > "agent malic acid")) > > chemical_df <- data.frame(chemical=c("basic", "alkalin", "alkali", > "acid", " ph ", "hss")) > > Here is my match code: > > library(magrittr) > match_df <- NULL > for (i in 1:length(chemical_df$chemical)) { match_df<- > data.frame(category=concept_df[grep(chemical_df$chemical[i], > concept_df$concept), ] ) %>% > rbind(match_df) > } > > But I don't want this result: > concept...
2011 Apr 11
0
plyr: version 1.5
...ups.google.com/group/manipulatr. Version 1.5 ------------------------------------------------------------------------------ NEW FEATURES * new `strip_splits` function removes splitting variables from the data frames returned by `ddply`. * `rename` moved in from reshape, and rewritten. * new `match_df` function makes it easy to subset a data frame to only contain values matching another data frame. Inspired by http://stackoverflow.com/questions/4693849. BUG FIXES * `**ply` now works when passed a list of functions * `*dply` now correctly names output even when some output combinations are...
2011 Apr 11
0
plyr: version 1.5
...ups.google.com/group/manipulatr. Version 1.5 ------------------------------------------------------------------------------ NEW FEATURES * new `strip_splits` function removes splitting variables from the data frames returned by `ddply`. * `rename` moved in from reshape, and rewritten. * new `match_df` function makes it easy to subset a data frame to only contain values matching another data frame. Inspired by http://stackoverflow.com/questions/4693849. BUG FIXES * `**ply` now works when passed a list of functions * `*dply` now correctly names output even when some output combinations are...