Skip to content
Back to formatted view

Raw Message

Message-ID: <CA+m+UXbor_5M9gOV_98UFm0cMYfMJrfD-19z5F_J9n1zirHDag@mail.gmail.com>
Date: 2021-11-05T06:59:21Z
From: Shrinivas Dharma
Subject: Please help me debugg

I am trying to run the following double loop which  I have written but it
is not running.
Unable to get my head around the mistake. Please try to spot the bug and
help

> for(i in 1:122){
+ for(j in 1:68){
+ if(V(FriendGraph)$name[i]==names[j]){
+ gender_vector[i]<-sex[j]
+ break;}
+ else{gender_vector[i]<-NA}
+ } }

*Error in `[.data.frame`(sex, j) : undefined columns selectedCalled from:
`[.data.frame`(sex, j)*
Browse[1]>

-- 
Warm Regards,
*Shrinivas Dharmadhikari*

Metric Consultancy Ltd.
91, Florida Estate,
Keshavanagar, Mundhwa
Pune-411036.

M: +91 98 230 09850
E : dharma at metricuk.com
www.metricglobal.com

*P* Please consider the environment and do not print this email unless
absolutely necessary.

	[[alternative HTML version deleted]]