search for: setdif

Displaying 2 results from an estimated 2 matches for "setdif".

Did you mean: setdiff
2009 Aug 18
1
function merge()
Hi, Actually, i use the function merge like this: (Data1 <- Data1[1:7,1:3])   Policy.Number AXA.Entity Country 1    1060000077        BNL     BNL 2       4001023         CH     BNL 3    1060000006         UK     BNL 4       4001025         CH     BNL 5      6.00E+13        USA     BNL 6       6100001         UK     BNL 7       4001028        USA     BNL > Data2 <-
2005 Jan 13
6
random samples
hi, I am encoutering a very little problem that seemed to be so easy to solve.... I need to divide the array > A<-c(1:200) into two subsets at random. Therefore I use the function "sample" in R: > S<-sample(A,100) for a random sample of size 100. Then I need the values in A that are not selected in S to be put in another array, there is my problem! Is there anyway to do