kimisc: Kirill's miscellaneous functions

A collection of useful functions not found anywhere else, mainly for programming: Generalized lagged differences, checking containment in an interval, creating a factor where the levels maintain the order of appearance, sampling rows from a data frame, converting seconds from midnight to and from H:M:S format, choosing the first non-NA value, transposing lists of lists, returning the name of the file currently sourced, smart named lists and vectors, and an alternative interface to assign().

Author
Kirill Mueller
Date of publication
2014-08-21 11:24:37
Maintainer
Kirill Mueller <mail@kirill-mueller.de>
License
GPL-3
Version
0.2-1
URLs

View on R-Forge

Man pages

coalesce.na
Replaces NA values
export
Exports to an environment
export.list
Exports to an environment
gdiff
Generalized lagged differences
hms.to.seconds
Converts a time value given in H:M:S format to the number of...
in.interval.lo
Checks if values are contained in an interval (open on the...
in.interval.ro
Checks if values are contained in an interval (open on the...
kimisc-package
Kirill's miscellaneous functions
nc
Smart named vector
nin.interval.lo
Checks if values are outside of an interval (open on the...
nin.interval.ro
Checks if values are outside of an interval (open on the...
nlist
Smart named list
ofactor
Order-preserving factors
sample-methos
Random Samples and Permutations for Data Frames
seconds.to.hms
Converts a time value given as number of seconds since...
setMissingNames
Set the Missing Names in an Object
thisfile
Determines the path of the currently running script
tll
Transposes a list of lists

Files in this package

kimisc/DESCRIPTION
kimisc/NAMESPACE
kimisc/R
kimisc/R/coalesce_na.R
kimisc/R/export.R
kimisc/R/gdiff.R
kimisc/R/hms_to_seconds.R
kimisc/R/in_interval.R
kimisc/R/kimisc-package.R
kimisc/R/nlist.R
kimisc/R/ofactor.R
kimisc/R/sample_data_frame.R
kimisc/R/seconds_to_hms.R
kimisc/R/thisfile.R
kimisc/R/tll.R
kimisc/inst
kimisc/inst/NEWS.Rd
kimisc/man
kimisc/man/coalesce.na.Rd
kimisc/man/export.Rd
kimisc/man/export.list.Rd
kimisc/man/gdiff.Rd
kimisc/man/hms.to.seconds.Rd
kimisc/man/in.interval.lo.Rd
kimisc/man/in.interval.ro.Rd
kimisc/man/kimisc-package.Rd
kimisc/man/nc.Rd
kimisc/man/nin.interval.lo.Rd
kimisc/man/nin.interval.ro.Rd
kimisc/man/nlist.Rd
kimisc/man/ofactor.Rd
kimisc/man/sample-methos.Rd
kimisc/man/seconds.to.hms.Rd
kimisc/man/setMissingNames.Rd
kimisc/man/thisfile.Rd
kimisc/man/tll.Rd
kimisc/tests
kimisc/tests/Examples
kimisc/tests/Examples/kimisc-Ex.Rout.save
kimisc/tests/test-all.R
kimisc/tests/testthat
kimisc/tests/testthat/scripts
kimisc/tests/testthat/scripts/thisfile-cat.R
kimisc/tests/testthat/scripts/thisfile.R
kimisc/tests/testthat/test-kimisc.R
kimisc/tests/testthat/test-thisfile.R