CXXR (C++ R)
Macros | Functions
coerce.cpp File Reference

($Id: coerce.cpp 1348 2013-02-25 17:49:03Z arr $)

#include <config.h>
#include <Defn.h>
#include <float.h>
#include <Rmath.h>
#include <Print.h>
#include "CXXR/GCStackRoot.hpp"
#include "CXXR/ArgList.hpp"
Include dependency graph for coerce.cpp:

Macros

#define R_NO_REMAP
#define R_MSG_mode   _("invalid 'mode' argument")
#define R_MSG_list_vec   _("applies only to lists and vectors")
#define WARN_NA   1
#define WARN_INACC   2
#define WARN_IMAG   4
#define WARN_RAW   8
#define COERCE_ERROR_STRING   "cannot coerce type '%s' to vector of type '%s'"
#define COERCE_ERROR   Rf_error(_(COERCE_ERROR_STRING), Rf_type2char(TYPEOF(v)), Rf_type2char(type))

Functions

void attribute_hidden Rf_CoercionWarning (int warn)
int attribute_hidden LogicalFromInteger (int x, int *warn)
int attribute_hidden LogicalFromReal (double x, int *warn)
int attribute_hidden LogicalFromComplex (Rcomplex x, int *warn)
int attribute_hidden LogicalFromString (SEXP x, int *warn)
int attribute_hidden Rf_IntegerFromLogical (int x, int *warn)
int attribute_hidden Rf_IntegerFromReal (double x, int *warn)
int attribute_hidden Rf_IntegerFromComplex (Rcomplex x, int *warn)
int attribute_hidden Rf_IntegerFromString (SEXP x, int *warn)
double attribute_hidden RealFromLogical (int x, int *warn)
double attribute_hidden RealFromInteger (int x, int *warn)
double attribute_hidden RealFromComplex (Rcomplex x, int *warn)
double attribute_hidden RealFromString (SEXP x, int *warn)
Rcomplex attribute_hidden ComplexFromLogical (int x, int *warn)
Rcomplex attribute_hidden ComplexFromInteger (int x, int *warn)
Rcomplex attribute_hidden ComplexFromReal (double x, int *warn)
Rcomplex attribute_hidden ComplexFromString (SEXP x, int *warn)
SEXP attribute_hidden Rf_StringFromLogical (int x, int *warn)
SEXP attribute_hidden Rf_StringFromInteger (int x, int *warn)
SEXP attribute_hidden Rf_StringFromReal (double x, int *warn)
SEXP attribute_hidden Rf_StringFromComplex (Rcomplex x, int *warn)
SEXP Rf_PairToVectorList (SEXP x)
SEXP Rf_VectorToPairList (SEXP x)
SEXP Rf_coerceVector (SEXP v, SEXPTYPE type)
SEXP Rf_CreateTag (SEXP x)
SEXP Rf_asCharacterFactor (SEXP x)
SEXP attribute_hidden do_ascharacter (SEXP call, SEXP op, SEXP args, SEXP rho)
SEXP attribute_hidden do_asvector (SEXP call, SEXP op, SEXP args, SEXP rho)
SEXP attribute_hidden do_asfunction (SEXP call, SEXP op, SEXP args, SEXP rho)
SEXP attribute_hidden do_ascall (SEXP call, SEXP op, SEXP args, SEXP rho)
int Rf_asLogical (SEXP x)
int Rf_asInteger (SEXP x)
double Rf_asReal (SEXP x)
Rcomplex Rf_asComplex (SEXP x)
SEXP attribute_hidden do_typeof (SEXP call, SEXP op, SEXP args, SEXP rho)
SEXP attribute_hidden do_is (SEXP call, SEXP op, SEXP args, SEXP rho)
SEXP attribute_hidden do_isvector (SEXP call, SEXP op, SEXP args, SEXP rho)
SEXP attribute_hidden do_isna (SEXP call, SEXP op, SEXP args, SEXP rho)
SEXP attribute_hidden do_isnan (SEXP call, SEXP op, SEXP args, SEXP rho)
SEXP attribute_hidden do_isfinite (SEXP call, SEXP op, SEXP args, SEXP rho)
SEXP attribute_hidden do_isinfinite (SEXP call, SEXP op, SEXP args, SEXP rho)
SEXP attribute_hidden do_call (SEXP call, SEXP op, SEXP args, SEXP rho)
SEXP attribute_hidden do_docall (SEXP call, SEXP op, SEXP args, SEXP rho)
SEXP Rf_substitute (SEXP lang, SEXP rho)
SEXP attribute_hidden Rf_substituteList (SEXP el, SEXP rho)
SEXP attribute_hidden do_substitute (SEXP call, SEXP op, SEXP args, SEXP rho)
SEXP attribute_hidden do_quote (SEXP call, SEXP op, SEXP args, SEXP rho)
SEXP attribute_hidden R_do_set_class (SEXP call, SEXP op, SEXP args, SEXP env)
SEXP attribute_hidden do_storage_mode (SEXP call, SEXP op, SEXP args, SEXP env)

Detailed Description

Coercions from one R type to another, including various 'is' and 'as' functions. Also 'quote'.