statgrid.props {RGeostats} | R Documentation |

Calculates the proportions in 1-D for a categorical variable informed on a regular grid

statgrid.props(dbin, nfacies, dbout = NA, pos = NA, radius = 0, radix = "Props", modify.target = db.locmod())

`dbin` |
The |

`nfacies` |
Number of categories to be considered. For example, when nfacies=3, the samples with target variable equal to 1, 2 or 3 will be considered; any other value will be discarded. |

`dbout` |
The |

`pos` |
Dimension of the space along which the statistics are calculated. For example, if the input grid is 3-D, setting pos=2 will calculate statistics per XY bench, for any position along the 3rd dimension. If not defined, this space dimension is set to the last dimension of the input grid. |

`radius` |
Radius of the neighborhood (around the centrel bench). A radius of 0 means the that calculations are performed on the all the cells of the strata alone; a radius of 1 corresponds to the cells of the 3 strata around the central one. |

`radix` |
Radix of the name given to the variables storing the results in the target Db. |

`modify.target` |
Decides whether or not the newly created variables will have their
locator defined or not. For more information, see |

The results consist in proportions for the 'nfacies' categories.

[Package *RGeostats* version 11.0.6 Index]