Learn R Programming

R.rsp (version 0.43.0)

getParameter.HttpRequest: Gets a parameter

Description

Gets a parameter.

Usage

# S3 method for HttpRequest
getParameter(this, name, default=NULL, drop=TRUE, ...)

Arguments

name

Name of parameter to be retrieved.

default

Value to be returned if parameter is missing.

drop

If TRUE and the number of returned values is one, then this single value is returned, otherwise a named vector.

...

Additional arguments passed to *getParameters().

Value

Returns the value(s) of the parameter either as a single value or as a named list. If the parameter does not exist, the default value is returned as is.

See Also

*hasParameter(). *getParameters(). For more information see HttpRequest.