transform_data function

Generate a dataframe with t, pos and tot columns from t and seropositive vectors.