Provides functions for stratified sampling and assigning custom labels to data, ensuring randomness within groups. The package supports various sampling methods such as stratified, cluster, and systematic sampling. It allows users to apply transformations and customize the sampling process. This package can be useful for statistical analysis and data preparation tasks.

The stratification of univariate populations under stratified sampling designs is implemented according to Khan et al. (2002) <doi:10.1177/0008068320020518> and Khan et al. (2015) <doi:10.1080/02664763.2015.1018674> in this library. It determines the Optimum Strata Boundaries (OSB) and Optimum Sample Sizes (OSS) for the study variable, y, using the best-fit frequency distribution of a survey variable (if data is available) or a hypothetical distribution (if data is not available). The method formulates the problem of determining the OSB as mathematical programming problem which is solved by using a dynamic programming technique. If a dataset of the population is available to the surveyor, the method estimates its best-fit distribution and determines the OSB and OSS under Neyman allocation directly. When the dataset is not available, stratification is made based on the assumption that the values of the study variable, y, are available as hypothetical realizations of proxy values of y from recent surveys. Thus, it requires certain distributional assumptions about the study variable. At present, it handles stratification for the populations where the study variable follows a continuous distribution, namely, Pareto, Triangular, Right-triangular, Weibull, Gamma, Exponential, Uniform, Normal, Log-normal and Cauchy distributions.

Includes bases for litholog generation: graphical functions
    based on R base graphics, interval management functions and svg importation 
    functions among others. Also include stereographic projection functions, 
    and other functions made to deal with large datasets while keeping options
    to get into the details of the data.
    When using for publication please cite 
    Sebastien Wouters, Anne-Christine Da Silva, Frederic Boulvain and 
    Xavier Devleeschouwer, 2021. The R Journal 13:2, 153-178.
    The palaeomagnetism functions are based on:
    Tauxe, L., 2010. Essentials of Paleomagnetism. University of California 
    Press. <https://earthref.org/MagIC/books/Tauxe/Essentials/>;
    Allmendinger, R. W., Cardozo, N. C., and Fisher, D., 2013, Structural 
    Geology Algorithms: Vectors & Tensors: Cambridge, England, Cambridge
    University Press, 289 pp.;
    Cardozo, N., and Allmendinger, R. W., 2013, Spherical projections
    with OSXStereonet: Computers & Geosciences, v. 51, no. 0, p. 193 - 205,
    <doi: 10.1016/j.cageo.2012.07.021>.