Nothing
# -----------------------------------------------------------------------------
# FUNCTIONS: which.dummy which dummies
# Which variables are dummy variables
#
# TODO:
# - allow for multiple names.
# -----------------------------------------------------------------------------
which.dummy <- function(data, name=NULL) {
indexes <- integer()
if( ! is.null(name) ) {
indexes <- attr( data, 'dummies' )[[name]]
} else {
if( is.null( attr( data, 'dummies' ) ) )
stop( "Data does not appear to have dummy variables." )
for( name in names( attr( data, 'dummies' ) ) )
indexes <- append( indexes, attr( data, 'dummies')[[name]] )
# indexes <- sapply( attr( data, 'dummies' ), I, USE.NAMES=F )
}
return( sort( as.integer( indexes ) ) )
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.