Great! The second way really helped me! Thank you so much!
--
View this message in context:
http://r.789695.n4.nabble.com/elimination-duplicate-elements-sampling-tp3652791p3687613.html
Sent from the R help mailing list archive at Nabble.com.
__
R-help@
Hi everyone!
I have a data frame with 1112 time series and I am going to randomly
sampling r samples for z times to compose different portfolio size(r
securities portfolio). As for r=2 and z=1,that's:
z=1
A=seq(1:1112)
x1=sample(A,z,replace =TRUE)
x2=sample(A,z,replace =TRUE)
M=cbind(x1,x2)
2 matches
Mail list logo