Hey, thanks for your reply. Firstly, apologies, I missed the x value on my first copy and also had X and Y capatalised when they shouldn't be. Please find an updated reprex below:
x <- c(660,66,188,67,886,906,628,818,351,905,97,661)
y <- c(0,10,10,4,8,9,2,10,7,1,3,1)
node <- c(rep(1,6), rep(2,6))
d <- data.frame(
X = x,
Y = y,
node = node
)
In regards to the Y variable, you're right it isn't involved in the transformation however it is essentially my variable of interest. I could provide a little more context if you would like, but the basic gist is Y represents some outcome measured on an experiment, node represents different participants and X the time that they made their decision in the experiment. So, all I need to do is label them from 1 - 6 per individual so that I can say "Individual 1 choose 6 on their first round and 3 on their third round" etc.
Of course I have simplified this significantly for my reprex so I could avoid having people go through my entire dataset.
I hope this clears things up?