Difference between revisions of "Central product classification"

From Testiwiki
Jump to: navigation, search
(bug in code)
(Formula)
Line 18: Line 18:
 
=== Dependencies ===
 
=== Dependencies ===
  
=== Formula ===
+
===Calculations===
  
<rcode>
+
<rcode name="calculations" label="Initiate variable">
 
library(OpasnetUtils)
 
library(OpasnetUtils)
 
library(xtable)
 
library(xtable)
  
data <- opbase.data("Op_en5914")
+
CPC <- Ovariable("CPC", ddata = "Op_en5914")
data$Result <- gsub('\\"', '', data$Result)
+
CPC@output <- CPC@data
colnames(data) <- c("CDC.code", "CDCResult")
+
objects.put(CPC)
print(xtable(head(data)), type = 'html')
+
 
 +
cat("Ovariable CPC created.\n")
 +
 
 +
print(xtable(head(CPC@output)), type = 'html')
  
opbase.upload(data, ident = "Op_en5914", who = "Jouni")
+
</rcode>
 +
 
 +
<rcode>
 +
library(OpasnetUtils)
 +
library(xtable)
  
cat("Data uploaded successfully\n")
+
objects.latest("Op_en5914", "calculations")
  
 +
print(xtable(head(CPC@output)), type = 'html')
 
</rcode>
 
</rcode>
  

Revision as of 21:15, 27 January 2013



Question

What is a good classification system for products?

Answer

Rationale

UN CPC version 2 seems to be an optimal choice. [1] [2]

Dependencies

Calculations

+ Show code

+ Show code

See also

Keywords

References


Related files

<mfanonymousfilelist></mfanonymousfilelist>