Urgent help needed for honours project – looking for the longest break between races in the first year

R programming language resources Forums Data manipulation Urgent help needed for honours project – looking for the longest break between races in the first year

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #428
    Jana.K
    Member

    Hi to anyone who is willing to help,

    I have a csv. file which has 1999 horses as the rows and the age(in years) of the horse at each race as columns. Ive read this file into R and called it ‘horses’.

    I’m trying to find the longest break between each race in the horse’s first year of racing. I already have a numeric called ‘age.first’ which is the age at which each horse had its first race. I understand if i want to look at the breaks a year from the first race i have to add +1. But i am not sure how to write the code into R. Can anyone help me get the longest break in the first year of racing for each horse?

    #430
    bryan
    Participant

    Can you provide a little more information (and maybe an example) of your data structure? It’s not clear how you’re calculating the difference in time from the first race. I.e., are you using the date of the race or the horses age to determine the time between races? The former seems more accurate, but it is unclear whether you have that data available. Also, what is the maximum number of races per horse?

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
Scroll to top
Privacy Policy