Hi,
With R version 4.0 matrix objects now also inherit from class "array", so e.g., class(matrix(1:9)) is c("matrix", "array"). This is problematic if you want to use de function solarPolygenic with the parameter "kinship" because the function checks if this input is a matrix... but it's not only a matrix anymore. So, you cannot use this function with a predefined kinship matrix.
It returns this error: <Error in kmat2kf(kmat) : class(kmat) == "matrix" are not all TRUE>.
Could you fix this bug, please?
Hi,
With R version 4.0 matrix objects now also inherit from class "array", so e.g., class(matrix(1:9)) is c("matrix", "array"). This is problematic if you want to use de function solarPolygenic with the parameter "kinship" because the function checks if this input is a matrix... but it's not only a matrix anymore. So, you cannot use this function with a predefined kinship matrix.
It returns this error: <Error in kmat2kf(kmat) : class(kmat) == "matrix" are not all TRUE>.
Could you fix this bug, please?