kimisc: Kirill's Miscellaneous Functions

A collection of useful functions not found anywhere else, mainly for programming: Pretty intervals, 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 Müller [aut, cre]
Date of publication
2016-02-14 17:30:21
Maintainer
Kirill Müller <krlmlr+r@mailbox.org>
License
GPL-3
Version
0.3
URLs

View on CRAN

Man pages

coalesce.na
Replaces NA values
cut_format
Convert Numeric to Factor, with custom formatting
df_to_list
Converts a name-value data frame to a named list
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
list_to_df
Converts a list to a name-value data frame
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
vswitch
Vectorized switch

Files in this package

kimisc
kimisc/inst
kimisc/inst/staticdocs
kimisc/inst/staticdocs/index.R
kimisc/tests
kimisc/tests/testthat
kimisc/tests/testthat/test-vswitch.R
kimisc/tests/testthat/scripts
kimisc/tests/testthat/scripts/thisfile-cat.R
kimisc/tests/testthat/scripts/thisfile.R
kimisc/tests/testthat/test-cut.R
kimisc/tests/testthat/test-gdiff.R
kimisc/tests/testthat/test-kimisc.R
kimisc/tests/testthat/test-list_to_df.R
kimisc/tests/testthat/test-thisfile.R
kimisc/tests/test-all.R
kimisc/NAMESPACE
kimisc/NEWS.md
kimisc/R
kimisc/R/gdiff.R
kimisc/R/nlist.R
kimisc/R/ofactor.R
kimisc/R/cut.R
kimisc/R/seconds_to_hms.R
kimisc/R/coalesce_na.R
kimisc/R/thisfile.R
kimisc/R/in_interval.R
kimisc/R/kimisc-package.R
kimisc/R/export.R
kimisc/R/list_to_df.R
kimisc/R/tll.R
kimisc/R/sample_data_frame.R
kimisc/R/vswitch.R
kimisc/R/hms_to_seconds.R
kimisc/MD5
kimisc/DESCRIPTION
kimisc/man
kimisc/man/setMissingNames.Rd
kimisc/man/df_to_list.Rd
kimisc/man/export.list.Rd
kimisc/man/nin.interval.ro.Rd
kimisc/man/sample-methos.Rd
kimisc/man/list_to_df.Rd
kimisc/man/vswitch.Rd
kimisc/man/seconds.to.hms.Rd
kimisc/man/nin.interval.lo.Rd
kimisc/man/kimisc-package.Rd
kimisc/man/export.Rd
kimisc/man/in.interval.lo.Rd
kimisc/man/thisfile.Rd
kimisc/man/nlist.Rd
kimisc/man/hms.to.seconds.Rd
kimisc/man/nc.Rd
kimisc/man/in.interval.ro.Rd
kimisc/man/gdiff.Rd
kimisc/man/cut_format.Rd
kimisc/man/ofactor.Rd
kimisc/man/tll.Rd
kimisc/man/coalesce.na.Rd