Difference between revisions of "OpasnetUtils/Drafts"

From Testiwiki
Jump to: navigation, search
(Answer)
(Answer)
Line 724: Line 724:
 
o1, # ovariable whose slots are used in the value.
 
o1, # ovariable whose slots are used in the value.
 
o2, # ovariable
 
o2, # ovariable
use_fillna = FALSE # Do we use fillna to fill in the NA values in indices?
+
use_fillna = FALSE, # Do we use fillna to fill in the NA values in indices?
 +
warn = "" # What warning is given if fillna is used?
 
) {
 
) {
 
x <- unkeep(o1 * 1, prevresults = TRUE, sources = TRUE)
 
x <- unkeep(o1 * 1, prevresults = TRUE, sources = TRUE)
Line 740: Line 741:
 
if(length(b) > 0) {
 
if(length(b) > 0) {
 
out@output <- fillna(out@output, b)
 
out@output <- fillna(out@output, b)
warning("Missing values had to be filled by function fillna in indices: ", b, "\n")
+
warning(warn, "\nMissing values had to be filled by function fillna in indices: ", b, "\n")
 
}
 
}
 
}
 
}

Revision as of 05:05, 19 February 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>