mismatch will return TRUE if the larger of nx,ny is not a multiple of the other and the other is >0 (see arithmetic.c). ymismatch will return TRUE if nx is not a multiple of ny and ny>0

mismatch(nx, ny)
ymismatch(nx, ny)

Arguments

nx

x length

ny

y length

Value

logical scalar

Author

Jens Oehlschlägel

See also

Examples

  ymismatch(4,0)
#> [1] FALSE
  ymismatch(4,2)
#> [1] FALSE
  ymismatch(4,3)
#> [1] TRUE
  ymismatch(2,4)
#> [1] TRUE
  mismatch(4,0)
#> [1] FALSE
  mismatch(4,2)
#> [1] FALSE
  mismatch(4,3)
#> [1] TRUE
  mismatch(2,4)
#> [1] FALSE