tm1_send_dataset: TM1 Send Data Set to a Cube

Description Usage Arguments Examples

View source: R/tm1_send_dataset.R

Description

Send data to a cube, Supports up-to 10 dimension for now

Usage

1
2
3
4
5
6
tm1_send_dataset(tm1_connection, valueset, cube, rowdim, coldim,
                                rowdim2, rowdim3, rowdim4, rowdim5,
                                titledim1, titleel1, titledim2, titleel2,
                                titledim3, titleel3, titledim4, titleel4,
                                titledim5, titleel5, titledim6, titleel6,
                                titledim7, titleel7, titledim8, titleel8)

Arguments

tm1_connection

tm1 connection object returned by the function tm1_connection

valueset

data frame or matrix object holding values you want to send to cube

cube

Name of a cube as a string

rowdim

Corresponding dimension of the elements on row

coldim

Corresponding dimension of the elements on column

rowdim2

Corresponding dimension of the elements on row2

rowdim3

Corresponding dimension of the elements on row3

rowdim4

Corresponding dimension of the elements on row4

rowdim5

Corresponding dimension of the elements on row5

titledim1

Name of dimension in title

titleel1

Element of dimension in corresponding titledim

titledim2

Name of dimension in title

titleel2

Element of dimension in corresponding titledim

titledim3

Name of dimension in title

titleel3

Element of dimension in corresponding titledim

titledim4

Name of dimension in title

titleel4

Element of dimension in corresponding titledim

titledim5

Name of dimension in title

titleel5

Element of dimension in corresponding titledim

titledim6

Name of dimension in title

titleel6

Element of dimension in corresponding titledim

titledim7

Name of dimension in title

titleel7

Element of dimension in corresponding titledim

titledim8

Name of dimension in title

titleel8

Element of dimension in corresponding titledim

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
## Not run: 

sdata <- tm1_connection("localhost", "8881", "admin", "apple")

#valueset
#    Argentina Brazil
#Jan         1      2
#Feb         3      4

tm1_send_dataset(
  sdata,
  valueset = valueset, cube = "SalesCube",
  rowdim = "month", coldim = "region",
  titledim1 = "actvsbud", titleel1 = "Actual",
  titledim2 = "model", titleel2 = "L Series 1.6 L Convertible",
  titledim3 = "account1", titleel3 = "Units")



## End(Not run)

tm1r documentation built on Dec. 15, 2020, 5:36 p.m.