Package: skUtils 0.1

skUtils: Helper functions for repgames and dyngames

Helper functions needed by my package repgames and dyngames

Authors:Sebastian Kranz

skUtils_0.1.tar.gz
skUtils_0.1.zip(r-4.5)skUtils_0.1.zip(r-4.4)skUtils_0.1.zip(r-4.3)
skUtils_0.1.tgz(r-4.4-x86_64)skUtils_0.1.tgz(r-4.4-arm64)skUtils_0.1.tgz(r-4.3-x86_64)skUtils_0.1.tgz(r-4.3-arm64)
skUtils_0.1.tar.gz(r-4.5-noble)skUtils_0.1.tar.gz(r-4.4-noble)
skUtils_0.1.tgz(r-4.4-emscripten)skUtils_0.1.tgz(r-4.3-emscripten)
skUtils.pdf |skUtils.html
skUtils/json (API)

# Install 'skUtils' in R:
install.packages('skUtils', repos = c('https://skranz.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/skranz/skutils/issues

Uses libs:
  • c++– GNU Standard C++ Library v3

On CRAN:

1.00 score 56 exports 1 dependencies

Last updated 4 years agofrom:7355347abd (on master). Checks:OK: 1 WARNING: 8. Indexed: yes.

TargetResultDate
Doc / VignettesOKNov 14 2024
R-4.5-win-x86_64WARNINGNov 14 2024
R-4.5-linux-x86_64WARNINGNov 14 2024
R-4.4-win-x86_64WARNINGNov 14 2024
R-4.4-mac-x86_64WARNINGNov 14 2024
R-4.4-mac-aarch64WARNINGNov 14 2024
R-4.3-win-x86_64WARNINGNov 14 2024
R-4.3-mac-x86_64WARNINGNov 14 2024
R-4.3-mac-aarch64WARNINGNov 14 2024

Exports:add.rowvecall.eqapproxeqassign.colsC_colMaxsC_colMinsC_rowMaxsC_rowMinsC_which_colMaxsC_which_colMinsC_which_rowMaxsC_which_rowMinscalc.mean.from.F.funcheck.global.varsclone.envclone.environmentcol.matrixcolMaxscolMinscopy.envcopy.into.envcopy.into.listcurrentenvdiscretize.given.F.vecexample.col.matrixexamples.assign.colsexamples.colMaxsexamples.copy.into.listexamples.grid.matrix.permutationexamples.grid.to.matrixexamples.matrix.to.gridexamples.rbind.listfindzerogrid.matrix.permutationgrid.to.matrixls.funsls.varsmake.grid.matrixmatrix.to.gridnamed.listnlistpaste.matrix.colspaste.matrix.rowsplot.multi.linesrbind.listrow.matrixrowMaxsrowMinsset.defaultsk.levelplotsk.optimsk.pareto.frontierwhich.colMaxswhich.colMinswhich.rowMaxswhich.rowMins

Dependencies:Rcpp

Readme and manuals

Help Manual

Help pageTopics
Add a vector v to each row of madd.rowvec
APPROXEQ Are a and b approximately equal (to within a specified tolerance)? p = approxeq(a, b, thresh) 'tol' defaults to 1e-3.approxeq
Assigns all columns of df into variables with the same name in environment envassign.cols
Calculate numerically the expected value given a cdfcalc.mean.from.F.fun
Some functions that are useful for coding Looks through all loaded functions and searches for global variables that are used within the functions this is a common source for errorscheck.global.vars
Clones an environment and its childrenclone.environment
Generates a matrix in which all cols are equal to colcol.matrix
Computes quickly the maxima of each column of a matrixcolMaxs
Computes quickly the minima of each column of a matrixcolMins
Copies an environmentcopy.env
Helper function to discretize a continous distribution. F.vec is a finite vector containing the value of the cdf at M different points. The function generates an M dimension vector of probabilities summing up to 1 that discretize the distributiondiscretize.given.F.vec
Finds position where the function f becomes zero First tries find.root and if this fails tries optimizefindzero
Gives the corresponding rows for a permutated grid.matrix given a permutation x.perm of the elements of the original list xgrid.matrix.permutation
Transforms a grid in long format into a matrixgrid.to.matrix
List all functionsls.funs
List all variablesls.vars
Some functions that are useful for manipulating or creating matrices and data.frames and working with lists of vectors, lists of lists or lists of matrices Transforms a matrix into grid in long formatmatrix.to.grid
Some functions that are useful for lists and environments in particular generating, transforming, copying and assigning values Creates a list that is named by the names of its argumentsnamed.list
Paste together columns of a matrix or data.framepaste.matrix.cols
Paste together rows of a matrix or data.framepaste.matrix.rows
Plot several linesplot.multi.lines
rbinds a list of matrices, a list of lists, or a list of vectors into a data.frame (or matrix) each column is a list Assume that all columns in the sublists are in the same orderrbind.list
Generates a matrix in which all rows are equal to rowrow.matrix
Computes quickly the minima of each row of a matrixrowMaxs
Computes quickly the minima of each row of a matrixrowMins
Need to check what it doesset.default
My wrapper to the lattice function levelplot. Allows for some own color schemes The parameter focus specifies at which z range stronger color changes shall appearsk.levelplot
A wrapper for optimization. Allows to specify which variables shall be free Has the same syntax for one and multidimensional optmization Uses optim, omptimize or a grid searchsk.optim
Calculates the 2dimensional paretofrontier of the points val1 and val2 The function returns the indices of the points that lie on the Pareto Frontier ordered by val1 and val2.sk.pareto.frontier
Computes quickly the index of the largest element of each column of a matrixwhich.colMaxs
Computes quickly the index of the smallest element of each column of a matrixwhich.colMins
Computes quickly the index of the largest element of each row of a matrixwhich.rowMaxs
Computes quickly the index of the smallest element of each row of a matrixwhich.rowMins