Nothing
#' Creates a state representation for arbitrary objects
#'
#' Converts object of any class to a reinforcement learning state of type character.
#'
#' @param x An object of any class.
#' @param ... Additional parameters passed to function.
#' @return Character value defining the state representation of the given object.
#'
#' @export
state <- function(x, ...) {
UseMethod("state", x)
}
#' @export
state.character <- function(x, ...) {
name <- toString(x)
return(name)
}
#' @export
state.double <- function(x, ...) {
name <- toString(x)
return(name)
}
#' @export
state.default <- function(x, storeObject = FALSE, ...) {
name <- toString(x)
return(name)
}
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.