[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [igraph] Getting a subgraph of a graph whose nodes have certain attr
From: |
Peter Flom |
Subject: |
Re: [igraph] Getting a subgraph of a graph whose nodes have certain attributes |
Date: |
Mon, 9 Apr 2012 12:44:05 -0400 |
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: address@hidden
[mailto:address@hidden
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
<address@hidden> 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:
> address@hidden
> [mailto:address@hidden
> 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 <address@hidden>
> wrote:
>> Never mind, I figured this out.
>
> So what was the solution? :-)
>
> Kind regards,
>
> Jan
> --
> Jan Schulz
> mail: address@hidden
>
> _______________________________________________
> igraph-help mailing list
> address@hidden
> https://lists.nongnu.org/mailman/listinfo/igraph-help
>
>
> _______________________________________________
> igraph-help mailing list
> address@hidden
> https://lists.nongnu.org/mailman/listinfo/igraph-help
--
Gabor Csardi <address@hidden> MTA KFKI RMKI
_______________________________________________
igraph-help mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/igraph-help