Return Clear Row or Column Value

DESCRIPTION:

Gives the value, of a particular data type, used to clear rows/columns.

USAGE:

clear.rowcol.value(clear.type=<<see below>>, default.object=NULL, 
                   by.default=T) 

OPTIONAL ARGUMENTS:

clear.type
character value specifying the data type of the clear value. If it is not "character" and by.default=T, it will be overridden by the default data type of default.object.
default.object
dataset which may be referenced in determining the data type of the clear value. If clear.type is not "character" and by.default=T, the data type of the clear value will be the default data type of default.object. If it is NULL (the default), its default data type is "logical"; if it is an object which inherits from class "data.frame", its default data type is "numeric"; otherwise, its default data type is data.class(default.object), or if that is "numeric" then storage.mode(default.object).
by.default
logical flag: if TRUE and clear.type is not "character", default.object will be used instead of clear.type to determine the data type of the clear value.

VALUE:

Either "" if the data type of the clear value is "character", or NA coerced to the data type.

SEE ALSO:

, , , , .

EXAMPLES:

# gives "" 
clear.rowcol.value("character") 
# also gives "" 
clear.rowcol.value("character", fuel.frame) 
# gives as.double(NA) 
clear.rowcol.value(default.object=fuel.frame) 
# gives as.integer(NA) 
clear.rowcol.value("complex", default.object=1:10) 
# gives as.logical(NA) 
clear.rowcol.value()