Extensions
01 Syntax
SMRUCC.Rsharp.Extensions
02 Methods
| Name | Overloads | Summary |
|---|---|---|
| GetObject | 1 | Create a specific .NET object from given data |
| GetEncoding | 1 | Get text encoding value, returns Encoding.Default by default if no matched. |
| GetString | 1 | get target value as string |
| evaluateList | 1 | |
| EvaluateFramework | 1 | 一个R对象通用的求值框架函数 |
| CastSequence | 1 | the parallel will not break the input sequence order |
| Buffer | 1 | try to convert any object as bytes byffer data |
| IsNullOrEmpty | 1 | |
| toList | 1 | |
| ParseDebugLevel | 1 | |
| AsRReturn | 1 | |
| GetObject | 1 | |
| SafeCreateColumns | 1 | |
| EvaluateFramework | 1 |
03 Members
GetObject``1(list)
Create a specific .NET object from given data
Type Parameters
| Name | Description |
|---|---|
T |
Parameters
| Name | Type | Description |
|---|---|---|
list | list | the object property data value collection. |
GetEncoding(
Object)Get text encoding value, returns Encoding.Default by default if no matched.
Remarks
utf8 encoding will be returned if the parameter value is nothing orelse is unknown string value.
Parameters
| Name | Type | Description |
|---|---|---|
val | Object | - |
get target value as string
Parameters
| Name | Type | Description |
|---|---|---|
list | list | - |
key$ | String | - |
default$ | String | - |
Type Parameters
| Name | Description |
|---|---|
T | |
TOut |
Parameters
| Name | Type | Description |
|---|---|---|
x | list | - |
eval | Func(Of ``0, ``1) | - |
parallel | Boolean | - |
env | Boolean | - |
Returns
variant type of TOut or a tuple list result
一个R对象通用的求值框架函数
Type Parameters
| Name | Description |
|---|---|
T | 输入的元素类型 |
TOut | 输出的元素类型 |
Parameters
| Name | Type | Description |
|---|---|---|
env | Environment | - |
x | Object | the input object source, supports vector, list, and scalar data object. (输入的数据源) |
eval | Func(Of ``0, ``1) | 求值函数 |
Returns
this function returns value of:
- nothing if the parameter input x has no value,
- vector for input is a collection or array
- list for input is a list
- Tout value object if the given x is a T scalar object
- and also may returns an error Message if error happends!
CastSequence``2(
List(Of ``0), Func(Of ``0, ``1), Boolean, Boolean)the parallel will not break the input sequence order
Type Parameters
| Name | Description |
|---|---|
T | |
TOut |
Parameters
| Name | Type | Description |
|---|---|---|
cast | List(Of ``0) | - |
eval | Func(Of ``0, ``1) | - |
parallel | Boolean | - |
Returns
variant of vector or TOut value
Buffer(
Object, Environment)try to convert any object as bytes byffer data
Parameters
| Name | Type | Description |
|---|---|---|
stream | Object | - |
env | Environment | - |
IsNullOrEmpty(PipeIterator(Of T))
ParseDebugLevel(
String)AsRReturn(
T)GetObject(list)
SafeCreateColumns(
IEnumerable(Of T), Func(Of T, String), Func(Of T, String()))