Wrapper around the pracma function with same name, handles NULL and NA arguments

cart2sph(x)

Arguments

x

Vector of x/y/z coordinates

Value

Spherical coordinates, using pracma conventions