Displaying 2 results from an estimated 2 matches for "alyabadia".
2012 Mar 19
2
Reshape from long to wide
Hi,
I'm a total beginner in R and this question is probably very simple but I've
spent hours reading about it and can't find the answer. I'm trying to
reshape a data table from long to wide format. I've tried reshape() and
cast() but I get error messages every time and I can't figure why. In my
data, I have the length of two fish from each family. My data table (called
2012 Mar 22
2
Randomly select elements based on criteria
Hi,
I want to randomly pick 2 fish born the same day but I need those
individuals to be from different families. My table includes 1787 fish
distributed in 948 families. An example of a subset of fish born in one
specific day would look like:
>fish
fam born spawn
25 46 43
25 46 56
26 46 50
43 46 43
131 46 43
133 46 64
136 46 43
136 46 42
136 46 50
136 46 85
137 46 64
142 46 85
144 46 56