filter_nonzero_bases | R Documentation |

The `filter_nonzero_bases`

function filters out bases functions that are essentially zero.
Bases functions with a sum of absolute values less than a threshold (`10^{-10}`

) are considered as essentially zero and are filtered out.

```
filter_nonzero_bases(bases)
```

`bases` |
A matrix containing the bases functions. |

A list with the following components:

`filtered_bases` |
A matrix containing the filtered bases functions, removing those that are essentially zero. |

`selected_bases` |
A vector containing the indices of the selected bases functions after filtering. |

```
bases <- matrix(c(0, 0.1, 0.2, 0, 0, 0.3, 0, 0, 0), nrow = 3)
filtered_bases <- filter_nonzero_bases(bases)
```

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.