Difference between revisions of "OpasnetUtils/Drafts"

From Testiwiki
Jump to: navigation, search
(added first draft of "Sähkön hinta tunneittain")
m
Line 76: Line 76:
 
as.numeric(temperature$Result)
 
as.numeric(temperature$Result)
 
cut(temperature$Result, breaks = c(-21, -18, -15, -12, -9, -6, -3, 0, 3, 6, 9, 12, 15, 18, 21, 24, 27, 30), include.lowest=TRUE)
 
cut(temperature$Result, breaks = c(-21, -18, -15, -12, -9, -6, -3, 0, 3, 6, 9, 12, 15, 18, 21, 24, 27, 30), include.lowest=TRUE)
 +
DateTime <- as.POSIXct(paste(temperature$Date, temperature$Time), format="%Y-%m-%d %H:%M:%S")
 +
DateHours <- as.POSIXct(paste(price$Date, price$Hours), format="%Y-%m-%d %H:%M:%S")
  
 
################## Suomentaja
 
################## Suomentaja
Line 171: Line 173:
 
levels(d$Heating)[levels(d$Heating) == "Oil"] <- "Öljy"
 
levels(d$Heating)[levels(d$Heating) == "Oil"] <- "Öljy"
 
levels(d$Heating)[levels(d$Heating) == "Other"] <- "Muu"
 
levels(d$Heating)[levels(d$Heating) == "Other"] <- "Muu"
}
 
if("XXX" %in% colnames(ova@output)) {
 
levels(d$XXX)[levels(d$XXX) == "Vitamin"] <- "Vitamiini"
 
 
}
 
}
  

Revision as of 11:42, 20 August 2015



Question

Which functions are so useful that they should be taken into OpasnetUtils package? This page contains draft function which will be included when they are good enough and found important.

Answer

Call the objects stored by this code from another rode with this command:

objects.latest("Op_en6007", code_name = "answer")

+ Show code

See also

References


Related files

<mfanonymousfilelist></mfanonymousfilelist>