Class: RObject
RWorker.RObject
Hierarchy
Table of contents
Constructors
Properties
Accessors
Methods
Constructors
constructor
• new RObject(data
): RObject
Parameters
Name | Type |
---|---|
data |
WebRData |
Returns
Overrides
Defined in
webR/robj-worker.ts:192
Properties
ptr
• ptr: number
Inherited from
Defined in
webR/robj-worker.ts:177
Accessors
[toStringTag]
• get
[toStringTag](): string
Returns
string
Defined in
webR/robj-worker.ts:206
Methods
attrs
▸ attrs(): Nullable
<RPairlist
>
Returns
Defined in
webR/robj-worker.ts:242
get
▸ get(prop
): RObject
Parameters
Name | Type |
---|---|
prop |
string | number |
Returns
Defined in
webR/robj-worker.ts:285
getDollar
▸ getDollar(prop
): RObject
Parameters
Name | Type |
---|---|
prop |
string |
Returns
Defined in
webR/robj-worker.ts:289
includes
▸ includes(name
): null
| boolean
Parameters
Name | Type |
---|---|
name |
string |
Returns
null
| boolean
Defined in
webR/robj-worker.ts:271
inspect
▸ inspect(): void
Returns
void
Defined in
webR/robj-worker.ts:220
isNa
▸ isNa(): boolean
Returns
boolean
Defined in
webR/robj-worker.ts:228
isNull
▸ isNull(): this is RNull
Returns
this is RNull
Defined in
webR/robj-worker.ts:224
isUnbound
▸ isUnbound(): boolean
Returns
boolean
Defined in
webR/robj-worker.ts:238
names
▸ names(): null
| (null
| string
)[]
Returns
null
| (null
| string
)[]
Defined in
webR/robj-worker.ts:262
pluck
▸ pluck(...path
): undefined
| RObject
Parameters
Name | Type |
---|---|
...path |
(string | number )[] |
Returns
undefined
| RObject
Defined in
webR/robj-worker.ts:309
set
▸ set(prop
, value
): RObject
Parameters
Name | Type |
---|---|
prop |
string | number |
value |
RObject | WebRDataRaw |
Returns
Defined in
webR/robj-worker.ts:325
setNames
▸ setNames(values
): this
Parameters
Name | Type |
---|---|
values |
null | (null | string )[] |
Returns
this
Defined in
webR/robj-worker.ts:246
subset
▸ subset(prop
): RObject
Parameters
Name | Type |
---|---|
prop |
string | number |
Returns
Defined in
webR/robj-worker.ts:281
toJs
▸ toJs(options?
, depth?
): WebRDataJs
Parameters
Name | Type | Default value |
---|---|---|
options |
ToJsOptions |
undefined |
depth |
number |
1 |
Returns
Defined in
webR/robj-worker.ts:277
type
▸ type(): "string"
| "symbol"
| "function"
| "null"
| "pairlist"
| "closure"
| "environment"
| "promise"
| "call"
| "special"
| "builtin"
| "logical"
| "integer"
| "double"
| "complex"
| "character"
| "dots"
| "any"
| "list"
| "expression"
| "bytecode"
| "pointer"
| "weakref"
| "raw"
| "s4"
| "new"
| "free"
Returns
"string"
| "symbol"
| "function"
| "null"
| "pairlist"
| "closure"
| "environment"
| "promise"
| "call"
| "special"
| "builtin"
| "logical"
| "integer"
| "double"
| "complex"
| "character"
| "dots"
| "any"
| "list"
| "expression"
| "bytecode"
| "pointer"
| "weakref"
| "raw"
| "s4"
| "new"
| "free"
Inherited from
Defined in
webR/robj-worker.ts:182
wrap
▸ wrap<T
>(this
, ptr
): InstanceType
<T
>
Type parameters
Name | Type |
---|---|
T |
extends typeof RObject |
Parameters
Name | Type |
---|---|
this |
T |
ptr |
number |
Returns
InstanceType
<T
>
Defined in
webR/robj-worker.ts:200