pdhoff / amen

R package for analysis of network and dyadic data
27 stars 11 forks source link

Data type check suggestion #5

Open jaehochang92 opened 1 month ago

jaehochang92 commented 1 month ago

Hi,

I encountered a dimension issue inside the design_array function. I figured out that the data type must be matrix not data.frame because amen was using length to calculate the # of elements in Xrow (or Xcol) array. I would like to suggest adding data-type check step inside the routine so that users can be redirected to the right course.