Learn R Programming

⚠️There's a newer version (0.2.1) of this package.Take me there.

Xmisc (version 0.1.0)

Xiaobei's miscellaneous classes and functions

Description

This is Xiaobei's miscellaneous classes and functions useful when developing R packages, particularly for OOP using R Reference Class.

Copy Link

Version

Install

install.packages('Xmisc')

Monthly Downloads

5

Version

0.1.0

License

GPL (>= 2)

Maintainer

Xiaobei Zhao

Last Published

August 4th, 2014

Functions in Xmisc (0.1.0)

as.loglevel

Coerces an object to loglevel
lstrip

Strip a string with given characters at the beginning (left end)
write.data.table

A wrapper of write.table
getone-methods

getone-methods
dfsplit

Split data.frame given one leveled column
endswith

Determine if a character string "ends with" specified characters
strsplit.first

Split a string at the first `split'
valid.arg.index

Check validity of an index
dfchunk

Chunk data.frame into parts
removeone,list-method

Remove an element from an R object
dfsort

Sort data.frame given levels of one column
popmany-methods

popmany-methods
ValueParser-class

Parser for values
Xmisc-package

Xiaobei's miscellaneous classes and functions
popone-methods

popone-methods
get.loglevel

Define log levels
strip

Strip a string with given chars at both ends
R5.value.parse

R5.value.parse
is.file

Is it a file
getone,list-method

Get an element by index or name from a list
stampmsg

Generate a diagnostic message from its arguments, with timestamp
List-class

A class inherited directly from envRefClass
logme

Log the name and the content of an R object
vchunk

Chunk a vector into parts
atos

Convert an R object to a string
is.windows

Is the OS Windows
R5.value.default

R5.value.default
rstrip

Strip a string with given chars at the (right) end
make.dir

Make a directory recursively
startswith

Determine if a character string "starts with" specified characters
is.activeBindingFunction

General test of a class name being activeBindingFunction
is.linux

Is the OS Linux
schunk

Chunk a string into parts
ArgumentParser-class

Parser for command-line options and arguments
Argument-class

Argument
character_to_logical

Convert a character string to logical.
dfconcat

Concatenate data.frame into a string
is.uninitializedField

General test of a class being uninitializedField
logsave

Log a `save`
stampme

Print a message with a time stamp
valid.mode

Return a valid mode given digits
is.dir

Is it a directory
raw_input

Input from the terminal (in interactive use)
is.package.loaded

Check if a package is loaded
printme

Print the name and the content of an R object
dir.exists

Does the directory exist
popmany,list-method

Remove and return many elements from a list
popone,list-method

Remove and return an element from a list
Sys.Epoch

Get system epoch
xRefClass-class

Extended Reference Class
vconcat

Concatenate vector into a string
check.packages

Check if a package can be loaded
is.loglevel

General test of an object being interpretable as loglevel
lprintf

String formatting given an environment
removeone-methods

removeone-methods