Re: [MORPHMET] digit.curves

2018-08-13 Thread Carmelo Fruciano




On 12/08/2018 22:20, Ian F wrote:
Does digit.curves require data in long on wide format? when i try to use 
it i get the error


  "  Error in digit.curves(2880, Rafalt1, nPoints = 30, closed=TRUE):
   Input must be a p-x-k matrix of curve coordinates"

what is a p-x-k matrix. I have searched it on the internet and have come 
up with nothing.I have tried both long and wide format and have had the 
same result. any help is much appreciated.


I'm not going to go into the details of the specific function call. But 
p by x by k is normally called a (3D) array in R. It's like a "stack of 
matrices" on a third dimension.
If you do a google search for "3D arrays R" (without quote), you'll find 
plenty of stuff to understand how it works, such as

http://aaronlichtner.com/r-a-little-bit-on-multidimensional-arrays-and-apply/
https://www.dummies.com/programming/r/how-to-create-an-array-in-r/
I hope this helps.
Carmelo

--


==
Carmelo Fruciano
Institute of Biology
Ecole Normale Superieure - Paris
CNRS
http://www.fruciano.it/research/

--
MORPHMET may be accessed via its webpage at http://www.morphometrics.org
--- 
You received this message because you are subscribed to the Google Groups "MORPHMET" group.

To unsubscribe from this group and stop receiving emails from it, send an email 
to morphmet+unsubscr...@morphometrics.org.



[MORPHMET] digit.curves

2018-08-12 Thread Ian F
Does digit.curves require data in long on wide format? when i try to use it 
i get the error  

 "  Error in digit.curves(2880, Rafalt1, nPoints = 30, closed=TRUE): 
  Input must be a p-x-k matrix of curve coordinates" 

what is a p-x-k matrix. I have searched it on the internet and have come up 
with nothing.I have tried both long and wide format and have had the same 
result. any help is much appreciated.

-- 
MORPHMET may be accessed via its webpage at http://www.morphometrics.org
--- 
You received this message because you are subscribed to the Google Groups 
"MORPHMET" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to morphmet+unsubscr...@morphometrics.org.