https://github.com/cran/pracma
Raw File
Tip revision: c69aa96969f2c9b1cbf8c3970f9dc394bfcbd550 authored by Hans W. Borchers on 07 December 2021, 05:30:02 UTC
version 2.3.6
Tip revision: c69aa96
meshgrid.R
##
##  m e s h g r i d . R Test suite
##


meshgrid <- pracma::meshgrid

identical(meshgrid(1:3, 10:14)$X,
          matrix(rep(c(1:3), each = 5), nr = 5, nc = 3))
identical(meshgrid(1:3, 10:14)$Y, 
          matrix(rep(10:14, times = 3), nr = 5, nc = 3))
back to top