Helps clients to convert stach to tabular format.
This package was used to convert stach to tabular format and to get meta data from stach.
install.packages('factset.protobuf.stach.v2')
install.packages('factset.protobuf.stachextensions')
library(factset.protobuf.stach.v2)
# Column Organized Stach
<- read(factset.protobuf.stach.v2.Package,input='local path of your stach extension file')
package <- factset.protobuf.stachextensions::V2ColumnOrganizedStachExtension$new()
stachExtensioncol
# To get the Column Organized stach data in tabular format with merging the headers
<- stachExtensioncol$ConvertToDataFrame(package)
columnOrganizedData
# To get the Column Organized stach data in tabular format without merging the headers
<- stachExtensioncol$ConvertToDataFrame(package,FALSE)
columnOrganizedData
# To get the Column Organized meta data
<- stachExtensioncol$GetMetadata(package)
columnOrganizedMetadata
# Row Organized Stach
<- read(factset.protobuf.stach.v2.RowOrganizedPackage,input='local path of your stach extension file')
package <- factset.protobuf.stachextensions::V2RowOrganizedStachExtension$new()
stachExtensionrow
# To get the Row Organized stach data in tabular format with merging the headers
<- stachExtensionrow$ConvertToDataFrame(package)
rowOrganizedData
# To get the Row Organized stach data in tabular format without merging the headers
<- stachExtensionrow$ConvertToDataFrame(package,FALSE)
rowOrganizedData
# To get the Row Organized meta data
<- stachExtensionrow$GetMetadata(package) rowOrganizedMetadata
analytics.api.support@factset.com