Hello guys,
I have one question about the pda.fd() function in "fda" package. When I try to set up and implement that function, R keeps giving the error:
pdaList = pda.fd(xfdlist, bwtlist)
Error in barray[[i]][, , j] <- as.matrix(eval.fd(tx, bfdij), returnMatrix = returnMatrix) :
number of items to replace is not a multiple of replacement length
Then I find a code example online. Here is the link. http://www.psych.mcgill.ca/misc/fda/downloads/FDAfuns/R/demo/handwrit.pda.R
You may have to change the first line to data("handwrit") and include the "fda" library.
And it still gives me the same error even I copy and paste the sample code to R.
Could you tell me why it will give such result and how to deal with it??
Thank you very much in advance.
------------------------------
Tianwen Ma
Student
University of Michigan Ann Arbor
------------------------------