[R] Rearranging Capture History Data in R

cox at montana.edu cox at montana.edu
Mon Jun 11 21:11:16 CEST 2007


What code can i use to convert a table like this:

Tag#    Date
1       1
2       1
3       1
4       1
2       2
4       2
1       3
2       3
4       4

Into one like this:

Tag     1     2     3     4 #Date header
1       1     0     0     1
2       1     1     1     0
3       1     0     0     0
4       1     1     0     1

Thanks,


Ben Cox
Research Assistant (M.S.)
Montana Cooperative Fishery Research Unit
301 Lewis Hall
Montana State University
Bozeman, MT 59717
(406)994-6643



More information about the R-help mailing list