Hello eveyrone.
I have a quiestion regarding dlnm package in R.
I am trying to trying to replicate the example from page 2 to 5 of the attached pdf file.
It is straight-forward but when I try to insert my dataset (attached .xlsx) I get
Error in as.vector(x, mode) :
cannot coerce type 'closure' to vector of type 'any'
I am extremely new to R and I am pretty lost. I would appreciate any help!