nuget server logo nuget api documents
↑

API Docs / REnv / vector

vector

Full name SMRUCC.Rsharp.Runtime.Internal.Object.vector Assembly REnv Members 22

01 Syntax

SMRUCC.Rsharp.Runtime.Internal.Object.vector

02 Methods

NameOverloadsSummary
.ctor 3 value copy
setNames 2 出错的时候会返回Message
getByIndex 2 以R语言中的下表的方式访问数组元素,所以这个函数的i参数应该是从1开始的
fromScalar 1 create a vector from a scalar value
getByName 1
hasName 1
getNames 1
setNamesSafe 1
setByIndex 1
ToString 1
asVector 1
isVectorOf 1
op_Equality 1
op_Inequality 1

03 Properties

NameOverloadsSummary
unit 1 do conversion from current vector to another scale.
data 1
factor 1
length 1

04 Members

method .ctor #
#ctor(vector)

value copy

Parameters
NameTypeDescription
vecvector

-

method .ctor overload 2 #
#ctor(Array, RType)

这个构造函数主要是应用于内部编程的快速创建

Parameters
NameTypeDescription
inputArray

-

typeRType

should be the array element type

method .ctor overload 3 #
#ctor(Type, IEnumerable, Environment)

Create a vector from a pipeline model and given array element model type

Remarks

try to make the collection data generic in this constructor function

Parameters
NameTypeDescription
modelType

element type of the array

inputIEnumerable

-

method setNames #
setNames(String(), Environment)

出错的时候会返回Message

Parameters
NameTypeDescription
namesString()

-

envirEnvironment

-

method getByIndex #
getByIndex(Int32)

以R语言中的下表的方式访问数组元素,所以这个函数的i参数应该是从1开始的

Remarks

这个函数是一个安全的函数,下表越界的时候按照R语言的处理规则,不会抛出错误,而是返回空值

Parameters
NameTypeDescription
iInt32

这个下标值应该是从1开始的

method getByIndex overload 2 #
getByIndex(Int32())
Parameters
NameTypeDescription
iInt32()

这个下标值应该是从1开始的

method fromScalar #
fromScalar(Object)

create a vector from a scalar value

Parameters
NameTypeDescription
xObject

-

property unit #
unit

do conversion from current vector to another scale.

property data #
data
property factor #
factor
property length #
length
method getByName #
getByName(String)
method hasName #
hasName(String)
method getNames #
getNames()
method setNames overload 2 #
setNames(String())
method setNamesSafe #
setNamesSafe(IEnumerable(Of String), Environment)
method setByIndex #
setByIndex(Int32, Object, Environment)
method ToString #
ToString()
method asVector #
asVector(IEnumerable(Of T), unit)
method isVectorOf #
isVectorOf(Object, TypeCodes)
method op_Equality #
op_Equality(vector, String)
method op_Inequality #
op_Inequality(vector, String)