igraph-help
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[igraph] Sample fuction.


From: Χαραλαμπόπουλος Ιωάννης
Subject: [igraph] Sample fuction.
Date: Mon, 9 Apr 2012 15:18:50 +0300

How can I exclude a vector of integers being chosen from sample function.
 
For example:
 
1st Run.
 
s=sample(1:10,3)
 
print( s )
 
[1] 5 2 3
 
Now I would like to use sample again but to exclude the posibility of the already picked numbers being drawn. I work on very large vectors and as such I would like to make use of the vector the are stored in( which in our case is "s”)
 
Thank you for your time.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]