Dear everyone,
I hope this post finds you well. I encounter several similar error messages when I use my R code. The RStudio shows the following message when I run my code under the “REMOVE BAD DATA” section.
Error in vapply(as.character(key.urls), function(i) which(randomized.urls == :
** values must be length 1,**
but FUN(X[[1]]) result is length 0
The similar error message was displayed when I run the code under the “PARSE CURSOR DATA” section.
Error in vapply(as.character(key.urls), function(i) which(randomized.urls == : **
** values must be length 1,
** but FUN(X[[1]]) result is length 8**
I have been suffering from these errors and try to figure out any solutions to address them. I have attached my R code and data file (named “data”) and you can download them from the link.
Do everyone have any thoughts about this issue, and if so, would you mind checking the error for me? If not, I definitely understand, and would greatly appreciate any pointers you might have about this issue.
Thank you very much for your time on this matter!