explore: metodo olapR explore

Consente l'esplorazione dei metadati del cubo

Utilizzo

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

Arguments

olapCnn

Oggetto della classe "OlapConnection" restituito da OlapConnection()

cube

Stringa che specifica il nome di un cubo

dimension

Stringa che specifica il nome di una dimensione

hierarchy

Stringa che specifica il nome di una gerarchia

level

Stringa che specifica il nome di un livello

Dettagli

explore

Valore

Stampa i metadati del cubo. Restituisce NULL. Se gli argomenti non sono validi, viene generato un errore.

Note

Gli argomenti devono essere specificati in ordine. Ad esempio: per esplorare le gerarchie, è necessario specificare una dimensione e un cubo.

Riferimenti

Per i riferimenti, vedere execute2D o executeMD.

Vedi anche

query, OlapConnection, executeMD, execute2D

Esempi


 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