Re: [R] igraph function "graph.bfs" unavailable

2012-07-12 Thread David Marx
Hi Gabor, I updated my RStudio installation to 0.96.316 (which did not modify my R build of 2.14.0) and that did it. Thanks for the help! David Marx Please note our office has moved: David Marx | Data Analyst Specialist, Claims Dept | SoundExchange, Inc. 733 10th Street, NW | 10th Floor

[R] igraph function "graph.bfs" unavailable

2012-07-11 Thread David Marx
uced.subgraph(all, node.bfs$order[which(!is.na(node.bfs$order))]) return(node.g) } Thanks, David Marx Please note our office has moved: David Marx | Data Analyst Specialist, Claims Dept | SoundExchange, Inc. 733 10th Street, NW | 10th Floor | Washington, DC  20001  P: 202.640.5858 | F: 202.640.58

[R] passing function parameters into a 'with' statement to dynamically pick out columns

2012-06-20 Thread David Marx
Hi, I've built a function to generate plots and would like to be able pass in column names as a parameter. Here's a boiled down version of what I have right now: pmts <- data.frame(date=c(1,2,3), all=c(5,6,7),maj=c(4,5,6),ind=c(3,4,5)) perc.mktshare <- function(df){ range1 <- floor(min(with