volume_sphere | R Documentation |

Volume of a sphere (arbitrary dimension).

```
volume_sphere(d, r = 1)
```

`d` |
dimension of the space |

`r` |
radius of the sphere |

The volume of the sphere with radius `r`

in the
`d`

-dimensional space.

```
r <- 2
volume_sphere(3, r)
4/3*pi*r^3
```

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.