RDataTypeUnregister

RDataTypeUnregister[type]
unregisters a data type with the name type from the RLink type system.

DetailsDetails

  • The type name type should normally be a string.
  • performs the reverse operation with respect to RDataTypeRegister.
  • If the data type with the name type has not been registered or has been already unregistered, does nothing.

ExamplesExamplesopen allclose all

Basic Examples (2)Basic Examples (2)

In[1]:=
Click for copyable input

Consider R data frames, which represent one of the extended data types added to core RLink data types through the type extension mechanism. This creates a simple data frame:

In[1]:=
Click for copyable input
Out[1]=

Now unregister the data frame type:

In[2]:=
Click for copyable input

Repeating the previous evaluation will now produce a different Mathematica expression, which is a generic RLink representation of an R data frame being interpreted as an R list with attributes:

In[3]:=
Click for copyable input
Out[3]=

The previous action, of course, impaired the data frame functionality. To recover previously registered definitions for data frames, you can call RDataTypeDefinitionsReload:

In[4]:=
Click for copyable input

This recovers the previous result:

In[5]:=
Click for copyable input
Out[5]=
New to Mathematica? Find your learning path »
Have a question? Ask support »