Displaying 1 result from an estimated 1 matches for "mydat_new".
2011 Mar 12
2
Identifying unique pairs
...ique(mydat$y) will give me 10, 8, 7, 2, 4.
What I need is a data frame where I will get a vector (say) x_new as (1, 2, 2, 5, 6) and corresponding y_new as (10, 8, 7, 2, 4). I need to use these two vectors viz. x_new and y_new seperately for further processing. They may be under same data frame say mydat_new but I should be able to access them as mydat_new$x_new and similarly for y.
I tried following way.
pp = paste(mydat$x, mydat$y)
pp = > pp
[1] "1 10" "1 10" "1 10" "2 8" "2 8" "2 8" "2 7" "2 7" "5 2"...