is.ok | R Documentation |
Returns TRUE
if and only if sum(vec)==magic.constant(n,d=d))
is.ok(vec, n=length(vec), d=2)
vec |
Vector to be tested |
n |
Order of square or hypercube. Default assumes order is equal
to length of |
d |
Dimension of square or hypercube. Default of 2 corresponds to a square |
Robin K. S. Hankin
is.ok(magic(5)[1,])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.