Share via


explore: olapR の explore メソッド

キューブ メタデータを探索できます

使用方法

  explore(olapCnn, cube = NULL, dimension = NULL, hierarchy = NULL, level = NULL)

引数

olapCnn

OlapConnection() によって返された "OlapConnection" クラスのオブジェクト

cube

キューブ名を指定する文字列

dimension

ディメンション名を指定する文字列

hierarchy

階層名を指定する文字列

level

レベル名を指定する文字列

詳細

explore

キューブのメタデータを出力します。 NULL を返します。 無効な引数を渡すとエラーがスローされます。

メモ

引数は順番に指定する必要があります。 たとえば、階層を調べるには、ディメンションとキューブを指定する必要があります。

リファレンス

リファレンスについては、「execute2D」または「executeMD」を参照してください。

こちらもご覧ください

query、OlapConnectionexecuteMDexecute2D

使用例


 cnnstr <- "Data Source=localhost; Provider=MSOLAP;"
 ocs <- OlapConnection(cnnstr)

 #Exploring Cubes
 explore(ocs)
 #Analysis Services Tutorial
 #Internet Sales
 #Reseller Sales
 #Sales Summary
 #[1] TRUE

 #Exploring Dimensions
 explore(ocs, "Analysis Services Tutorial")
 #Customer
 #Date
 #Due Date
 #Employee
 #Internet Sales Order Details
 #Measures
 #Product
 #Promotion
 #Reseller
 #Reseller Geography
 #Sales Reason
 #Sales Territory
 #Ship Date
 #[1] TRUE

 #Exploring Hierarchies
 explore(ocs, "Analysis Services Tutorial", "Product")
 #Category
 #Class
 #Color
 #Days To Manufacture
 #Dealer Price
 #End Date
 #List Price
 #Model Name
 #Product Categories
 #Product Line
 #Product Model Lines
 #Product Name
 #Reorder Point
 #Safety Stock Level
 #Size
 #Size Range
 #Standard Cost
 #Start Date
 #Status
 #Style
 #Subcategory
 #Weight
 #[1] TRUE

 #Exploring Levels
 explore(ocs, "Analysis Services Tutorial", "Product", "Product Categories")
 #(All)
 #Category
 #Subcategory
 #Product Name
 #[1] TRUE

 #Exploring Members
 #NOTE: -> indicates that the following member is a child of the previous member
 explore(ocs, "Analysis Services Tutorial", "Product", "Product Categories", "Category")
 #Accessories
 #Bikes
 #Clothing
 #Components
 #Assembly Components
 #-> Assembly Components
 #--> Assembly Components