nameOfClass.python.builtin.type | R Documentation |
nameOfClass()
for Python objectsThis generic enables passing a python.builtin.type
object as the 2nd
argument to base::inherits()
.
## S3 method for class 'python.builtin.type'
nameOfClass(x)
x |
A Python class |
A scalar string matching the S3 class of objects constructed from the type.
## Not run:
numpy <- import("numpy")
x <- r_to_py(array(1:3))
inherits(x, numpy$ndarray)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.