Difference between revisions of "Central product classification"

From Opasnet
Jump to: navigation, search
(code and ovariables updated)
(some description of CPC added)
 
(One intermediate revision by the same user not shown)
Line 11: Line 11:
 
{{attack|#|Something wrong with the first-level codes (there is a leading zero although should not be). This was corrected, but is there more problems with the data?|--[[User:Jouni|Jouni]] ([[User talk:Jouni|talk]]) 23:05, 27 December 2013 (EET)}}
 
{{attack|#|Something wrong with the first-level codes (there is a leading zero although should not be). This was corrected, but is there more problems with the data?|--[[User:Jouni|Jouni]] ([[User talk:Jouni|talk]]) 23:05, 27 December 2013 (EET)}}
  
<rcode name="answer" embed=1>
+
<rcode name="answer" label="Show classification levels 1-2" embed=1>
 
library(OpasnetUtils)
 
library(OpasnetUtils)
  
Line 21: Line 21:
  
 
oprint(head(CPC@output))
 
oprint(head(CPC@output))
 +
 +
</rcode>
 +
 +
 +
<rcode name="subclasses" label="Show lower classification levels" embed=1 variables="
 +
name:class|description:Which class do you want to see in detail?|type:text|default:011
 +
">
 +
library(OpasnetUtils)
 +
 +
objects.latest("Op_en5914", code_name = "initiate")
 +
 +
CPC <- EvalOutput(CPC)
 +
 +
oprint(CPC@output[regexpr(class, CPC@output$CPC.code) == 1 , ])
  
 
</rcode>
 
</rcode>
Line 26: Line 40:
 
== Rationale ==
 
== Rationale ==
  
UN CPC version 2 seems to be an optimal choice.  
+
UN CPC version 2 seems to be an optimal choice. It contains a hierarchical system for products, 4408 rows in total. It is organised in five hierarchical levels. It is based on ten categories at the top level, numbered from 0 to 9:
 
[http://unstats.un.org/unsd/cr/registry/cpc-2.asp]
 
[http://unstats.un.org/unsd/cr/registry/cpc-2.asp]
 
[http://unstats.un.org/unsd/cr/registry/regdntransfer.asp?f=130]
 
[http://unstats.un.org/unsd/cr/registry/regdntransfer.asp?f=130]
 +
* Agriculture, forestry and fishery products
 +
* Ores and minerals; electricity, gas and water
 +
* Food products, beverages and tobacco; textiles, apparel and leather products
 +
* Other transportable goods, except metal products, machinery and equipment
 +
* Metal products, machinery and equipment
 +
* Constructions and construction services
 +
* Distributive trade services; accommodation, food and beverage serving services; transport services; and electricity, gas and water distribution services
 +
* Financial and related services; real estate services; and rental and leasing services
 +
* Business and production services
 +
* Community, social and personal services
  
 
=== Dependencies ===
 
=== Dependencies ===

Latest revision as of 13:09, 13 March 2014



Question

What is a good classification system for products?

Answer

⇤--#: . Something wrong with the first-level codes (there is a leading zero although should not be). This was corrected, but is there more problems with the data? --Jouni (talk) 23:05, 27 December 2013 (EET) (type: truth; paradigms: science: attack)

+ Show code


Which class do you want to see in detail?:

+ Show code

Rationale

UN CPC version 2 seems to be an optimal choice. It contains a hierarchical system for products, 4408 rows in total. It is organised in five hierarchical levels. It is based on ten categories at the top level, numbered from 0 to 9: [1] [2]

  • Agriculture, forestry and fishery products
  • Ores and minerals; electricity, gas and water
  • Food products, beverages and tobacco; textiles, apparel and leather products
  • Other transportable goods, except metal products, machinery and equipment
  • Metal products, machinery and equipment
  • Constructions and construction services
  • Distributive trade services; accommodation, food and beverage serving services; transport services; and electricity, gas and water distribution services
  • Financial and related services; real estate services; and rental and leasing services
  • Business and production services
  • Community, social and personal services

Dependencies

Calculations

+ Show code

See also

Keywords

References


Related files

<mfanonymousfilelist></mfanonymousfilelist>