data structure

  1. L

    Data restructuring, repeated measures

    I'm sorry to be asking such a basic question, but I've been reading several tutorials and forums and still can't figure this one out. The data I have started out in an Excel file, it's similar to a patient evaluation. Each patient is evaluated by 2 nurses (out of a total of 6 nurses - that is...
  2. D

    Rearranging a dataset in R

    Hello, So I currently have a dataset that is like this: structure(list(FID = structure(1:10, .Label = c("A", "B", "C", "D", "E", "F", "G", "H", "I", "J"), class = "factor"), Treatment = c(1L, 2L, 3L, 4L, 5L, 1L, 2L, 3L, 4L, 5L), Territorial = structure(c(2L, 1L, 2L, 1L, 2L, 2L, 1L...