https://github.com/cran/pracma
Raw File
Tip revision: 3fdb68cc842f2ab3b59608f8e04d495763584f78 authored by Hans W. Borchers on 27 November 2015, 12:07:10 UTC
version 1.8.8
Tip revision: 3fdb68c
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