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、OlapConnection、executeMD、execute2D
示例
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