Hi Community,
I have a little project I am working on using OpenRefine. I do a lot of data cleaning, which works nicely. However there is one step I cannot figure out: It is about determining the age of a participant of a project on a certain cutoff day. There are two relevant columns, one containing the cutoff-date for each record (called "Col.New") and one the Date of Birth (called "Date of Birth"). Both dates are like that: 2013-06-30T00:00:00Z.
This is where I get stuck: To get the age of the participant on the cutoff day, I should get the difference between the new column and the "Date of Birth" column in full years (something I could achieve rather easily with excel, however the way I am working, it would be nice to get a finished table out of OpenRefine).
What I tried was to get the diff expression to work on the "Col.New"-column, something like this:
diff(cells["Col.New"], cells["Date of Birth"], year)
However this gives me: "Error: Unexpected arguments - expecting either 2 strings or 2 dates and a unit string". Both columns have the same format (shown above). I admit that I have no clue how to apply the diff-expression, so that might be one reason.
It's probably an easy error, but being new I feel that I tried everything without getting something different that this error.
Help would be highly appreciated. Thank you very much!