Class: RList

RWorker.RList

Hierarchy

Table of contents

Constructors

Properties

Accessors

Methods

Constructors

constructor

new RList(val, names?): RList

Parameters

Name Type Default value
val WebRData undefined
names null | (null | string)[] null

Returns

RList

Overrides

RObject.constructor

Defined in

webR/robj-worker.ts:613

Properties

ptr

ptr: number

Inherited from

RObject.ptr

Defined in

webR/robj-worker.ts:183

Accessors

[toStringTag]

get [toStringTag](): string

Returns

string

Inherited from

RObject.[toStringTag]

Defined in

webR/robj-worker.ts:212


length

get length(): number

Returns

number

Defined in

webR/robj-worker.ts:658

Methods

attrs

attrs(): Nullable<RPairlist>

Returns

Nullable<RPairlist>

Inherited from

RObject.attrs

Defined in

webR/robj-worker.ts:248


class

class(): RCharacter

Returns

RCharacter

Inherited from

RObject.class

Defined in

webR/robj-worker.ts:252


entries

entries(options?): NamedEntries<WebRData>

Parameters

Name Type
options Object
options.depth number

Returns

NamedEntries<WebRData>

Defined in

webR/robj-worker.ts:702


get

get(prop): RObject

Parameters

Name Type
prop string | number

Returns

RObject

Inherited from

RObject.get

Defined in

webR/robj-worker.ts:302


getDollar

getDollar(prop): RObject

Parameters

Name Type
prop string

Returns

RObject

Inherited from

RObject.getDollar

Defined in

webR/robj-worker.ts:306


includes

includes(name): null | boolean

Parameters

Name Type
name string

Returns

null | boolean

Inherited from

RObject.includes

Defined in

webR/robj-worker.ts:288


inspect

inspect(): void

Returns

void

Inherited from

RObject.inspect

Defined in

webR/robj-worker.ts:226


isDataFrame

isDataFrame(): boolean

Returns

boolean

Defined in

webR/robj-worker.ts:662


isNa

isNa(): boolean

Returns

boolean

Inherited from

RObject.isNa

Defined in

webR/robj-worker.ts:234


isNull

isNull(): this is RNull

Returns

this is RNull

Inherited from

RObject.isNull

Defined in

webR/robj-worker.ts:230


isUnbound

isUnbound(): boolean

Returns

boolean

Inherited from

RObject.isUnbound

Defined in

webR/robj-worker.ts:244


names

names(): null | (null | string)[]

Returns

null | (null | string)[]

Inherited from

RObject.names

Defined in

webR/robj-worker.ts:279


pluck

pluck(...path): undefined | RObject

Parameters

Name Type
...path (string | number)[]

Returns

undefined | RObject

Inherited from

RObject.pluck

Defined in

webR/robj-worker.ts:326


set

set(prop, value): RObject

Parameters

Name Type
prop string | number
value WebRDataRaw | RObject

Returns

RObject

Inherited from

RObject.set

Defined in

webR/robj-worker.ts:342


setNames

setNames(values): this

Parameters

Name Type
values null | (null | string)[]

Returns

this

Inherited from

RObject.setNames

Defined in

webR/robj-worker.ts:263


subset

subset(prop): RObject

Parameters

Name Type
prop string | number

Returns

RObject

Inherited from

RObject.subset

Defined in

webR/robj-worker.ts:298


toArray

toArray(options?): WebRData[]

Parameters

Name Type
options Object
options.depth number

Returns

WebRData[]

Defined in

webR/robj-worker.ts:667


toD3

toD3(): NamedObject<WebRData>[]

Returns

NamedObject<WebRData>[]

Defined in

webR/robj-worker.ts:689


toJs

toJs(options?, depth?): WebRDataJsNode

Parameters

Name Type Default value
options Object undefined
options.depth number undefined
depth number 1

Returns

WebRDataJsNode

Overrides

RObject.toJs

Defined in

webR/robj-worker.ts:713


toObject

toObject(«destructured»?): NamedObject<WebRData>

Parameters

Name Type Default value
«destructured» Object {}
› allowDuplicateKey undefined | boolean true
› allowEmptyKey undefined | boolean false
› depth undefined | number -1

Returns

NamedObject<WebRData>

Defined in

webR/robj-worker.ts:671


type

type(): "string" | "symbol" | "function" | "raw" | "null" | "pairlist" | "closure" | "environment" | "promise" | "call" | "special" | "builtin" | "logical" | "integer" | "double" | "complex" | "character" | "dots" | "any" | "list" | "expression" | "bytecode" | "pointer" | "weakref" | "s4" | "new" | "free"

Returns

"string" | "symbol" | "function" | "raw" | "null" | "pairlist" | "closure" | "environment" | "promise" | "call" | "special" | "builtin" | "logical" | "integer" | "double" | "complex" | "character" | "dots" | "any" | "list" | "expression" | "bytecode" | "pointer" | "weakref" | "s4" | "new" | "free"

Inherited from

RObject.type

Defined in

webR/robj-worker.ts:188


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>

Inherited from

RObject.wrap

Defined in

webR/robj-worker.ts:206