search for: admityear

Displaying 1 result from an estimated 1 matches for "admityear".

2010 Jul 27
1
repeating rows in R
...le NoRecords for each row. So, there are actually 7 cases of cancer and 3 cases of HIV in my data, not 2 cases of HIV and 1 case of cancer. Is there an easy way to expand my data so that I actually end up with 22 rows instead of 10? Specifically, my data currently look like this: >my data AdmitYear Race Age.yrs. Insurance HIV Cancer NoRecords 1 1985 A 20 0 0 0 1 2 1985 A 21 0 0 0 1 3 1985 A 22 1 1 0 1 4 1985 A 23...