Hi Gabor The R issue is that subset() and [ ] don't have the same defaults regarding NA
The igraph issue is that when the vs vector includes NAs, things don't work, and the error message is not particularly helpful Thanks Peter Peter Flom Peter Flom Consulting http://www.statisticalanalysisconsulting.com/ http://www.IAmLearningDisabled.com -----Original Message----- From: igraph-help-bounces+peterflomconsulting=mindspring....@nongnu.org [mailto:igraph-help-bounces+peterflomconsulting=mindspring....@nongnu.org] On Behalf Of Gábor Csárdi Sent: Monday, April 09, 2012 11:35 AM To: Help for igraph users Subject: Re: [igraph] Getting a subgraph of a graph whose nodes have certain attributes Just for the records, what is the oddity here? That you cannot have NA in an index vector? Gabor On Sat, Apr 7, 2012 at 3:46 PM, Peter Flom <[email protected]> wrote: > The solution was to use > > vs <- subset(traits$Position, traits$Volume > 50) > > instead of the [ ] notation. > > One of R's oddities (or harsher language......) > > Peter > > Peter Flom > Peter Flom Consulting > http://www.statisticalanalysisconsulting.com/ > http://www.IAmLearningDisabled.com > > -----Original Message----- > From: > igraph-help-bounces+peterflomconsulting=mindspring....@nongnu.org > [mailto:igraph-help-bounces+peterflomconsulting=mindspring.com@nongnu. > org] > On Behalf Of Jan Schulz > Sent: Saturday, April 07, 2012 3:29 PM > To: Help for igraph users > Subject: Re: [igraph] Getting a subgraph of a graph whose nodes have > certain attributes > > Hi Peter! > > On 7 April 2012 20:40, Peter Flom <[email protected]> > wrote: >> Never mind, I figured this out. > > So what was the solution? :-) > > Kind regards, > > Jan > -- > Jan Schulz > mail: [email protected] > > _______________________________________________ > igraph-help mailing list > [email protected] > https://lists.nongnu.org/mailman/listinfo/igraph-help > > > _______________________________________________ > igraph-help mailing list > [email protected] > https://lists.nongnu.org/mailman/listinfo/igraph-help -- Gabor Csardi <[email protected]> MTA KFKI RMKI _______________________________________________ igraph-help mailing list [email protected] https://lists.nongnu.org/mailman/listinfo/igraph-help _______________________________________________ igraph-help mailing list [email protected] https://lists.nongnu.org/mailman/listinfo/igraph-help
