Skip to content
Back to formatted view

Raw Message

Message-ID: <21949173.post@talk.nabble.com>
Date: 2009-02-11T06:38:36Z
From: Megh Dal
Subject: Loop on characters

Hi,

suppose I have three vectors like :

l1 = 1:4
l2 = 4:9
l3 = 16:67

now I want to construct a loop like :

for (i in 1:3)
   {
     count1[i] = length(li) # i.e. it will take l1, l2, l3 according to
value of i
   }

Can anyone please tell me how to do that?

Regards,

-- 
View this message in context: http://www.nabble.com/Loop-on-characters-tp21949173p21949173.html
Sent from the R help mailing list archive at Nabble.com.