search for: evalu

Displaying 20 results from an estimated 11082 matches for "evalu".

Did you mean: eval
2009 Feb 09
1
XML package- accessing nodes based on attributes
Hi, I have a rather complex xml document that I am attempting to parse based on attributes: <Manifest xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <!-- eName : name of the element. eValue : value of the element. --> <OutputFilePath>D:\CN_data\Agilent\Results\</OutputFilePath> <FilesList> <File> <Characteristic Type="File" eName="FileTypeId" eValue="10"/> <Characteristic Type=&quo...
2007 Sep 24
3
Custom type
Hi. I have a small problem with the custom type I am working on. I define method ''evaluate'' which is called after all data is been collected. Here it is: module Puppet newtype(:test) do newparam(:name) do end newparam(:listen) do defaultto "silent" end def evaluate puts "evaluating..." return super.evaluate e...
2006 Dec 30
2
Evaluating Entire Matlab code at a time
...yansikha at yahoo.com> wrote: > Dear Mr.Bengtsson, > > The steps you have suggested are working for single lines of matlab > statements. But, as i mentioned earlier, If i want to see the output of an > entire matlab code (say swissroll.m) then you suggested me to do > res <- evaluate(matlab, "swissroll"). > When i did this the output looks something like: > > > res <- evaluate(matlab, "swissroll") > > Sending expression on the Matlab server to be evaluated...: 'swissroll' > Received an 'MatlabException' reply (-1)...
2007 Aug 31
3
data frame row manipulation
Hello, struggling with the very basic needs... :( any help appreciated. #using the package doBY #who drinks how much beer per day and therefor cannot calculate rowise maxvals evaluation=data.frame(date=c(1,2,3,4,5,6,7,8,9), name=c("Michael","Steve","Bob", "Michael","Steve","Bob","Michael","Steve","Bob"), vol=c(3,5,4,2,4,5,7,6,7)) evaluation # maxval=summaryBy(vol ~ name,data=evaluation,...
2006 Sep 28
3
Evaluation of defaults in functions
Hello, and sorry if this is already explained somewhere. I couldn't find anything. R (2.3.1, Windows) seems to perform some kind of lazy evaluation when evaluating defaults in function calls that, at least for me, leads to unexpected results. Consider the following, seemingly equivalent functions: > foo1 <- function(x, y=x) { + x <- 0 + y + } > foo1(1) [1] 0 > foo2 <- function(x, y=x) { + y <- y + x <...
2013 Oct 16
1
Parallel R expression evaluations
...und(X) and abs(X) parallelly on a set of 50 input rows which resulted in segmentation fault after getting the following errors. Error: unprotect_ptr: pointer not found Error: argument to 'findVar' is not an environment I am using the following code snippet for initializing R, parsing and evaluation of R expression // For initialization int res= Rf_initEmbeddedR(R_argc, (char**)R_argv); // For parsing and evaluation SEXP cmd1= Rf_mkChar(rscript); SEXP cmdSexp, cmdexpr, sresult = R_NilValue; ParseStatus status; R_len_t i=0; PROTECT(cmdSexp = Rf_allocVector(STRSXP,...
2003 Sep 28
1
infinite recursion during package installation with methods, setAs
...estpkg Loading required package: testpkg Loading required package: testpkg Loading required package: testpkg Loading required package: testpkg Loading required package: testpkg Loading required package: testpkg Loading required package: testpkg Loading required package: testpkg Error during wrapup: evaluation is nested too deeply: infinite recursion? Loading required package: testpkg Error in options(x) : evaluation is nested too deeply: infinite recursion? Error: evaluation is nested too deeply: infinite recursion? Error: evaluation is nested too deeply: infinite recursion? Error: evaluation is ne...
2007 Dec 22
2
Understanding eval
...<- function(er) { foo(er) } > foo(a) [1] 5 > bar(a) Error in eval(expr, envir, enclos) : object "a" not found Now, regarding the "bar(a)" call, this is my understanding of what happens, hoping someone will correct me where I'm wrong. 1) bar is called. Its evaluation frame contains the association "er=a". 2) bar calls foo. So foo is called, and its evaluation frame contains the association "expr=er", with enclosing environment the local environment of bar. 3) foo calls eval. 4) eval starts by evaluating "substitute(expr)"...
2018 Jan 03
3
Coping with non-standard evaluation in R program analysis
...pre-call and post-call shims to capture the arguments and return value, respectively. I can think of only one fundamental conceptual obstacle to this approach: R functions are not necessarily referentially transparent. The arguments received by a function are not values but promises. They can be evaluated directly ("standard evaluation"), after applying arbitrary syntactic transformations ("non-standard evaluation", aka NSE), or not at all. Therefore, if you peek at the values of function arguments before evaluating the function, you risk altering the semantics of the program...
2018 May 03
1
The stages of standard function evaluation
Dear R Help folks -- I have been trying to put together a list of the steps or stages of R function evaluation, with particular focus on those that have "standard" or "nonstandard" forms. This is both for my own edification and also because I am thinking of joining the world of R bloggers and have been trying to put together some draft posting that might be useful. I seem to have an...
2007 Feb 21
1
avoiding a needless function evaluation in optimize() (PR#9523)
Full_Name: Jelle Goeman Version: 2.4.0 OS: windows XP Submission from: (NULL) (145.88.209.33) Hi, I like to use optimize() to optimize functions whose evaluation is costly in terms of computation time. The Brent algorithm which is implemented in optimize was designed to optimize a function with as few function evaluations as possible. Therefore it bothers me that optimize() always evaluates the function twice at the optimal value. This can be seen for...
2012 Apr 25
4
delayedAssign changing values
I'm not sure if this is a known peculiarity or a bug, but I stumbled across what I think is very odd behavior from delayedAssign. In the below example x switches values the first two times it is evaluated. > delayedAssign("x", {x <- 2; x+3}) > x==x [1] FALSE > delayedAssign("x", {x <- 2; x+3}) > x [1] 5 > x [1] 2 The ?delayedAssign documentation says that "after [evaluation], the value is fixed and the expression will not be evaluated again."...
2003 Jan 23
2
send_files failed to open filename ...
...mful or not ? Here below my rsync command and some of the error messages : rsync --delete -zrv --bwlimit=$bwlimit --timeout=1200 --exclude-from='/etc/rsync/exclude' $user\@" . $server . "::htdocs/$dir/ /var/www/htdocs/$dir/ send_files failed to open www.lft.mg/matieres/svt/Evaluations/CLASSE.GIF: No such file or directory send_files failed to open www.lft.mg/matieres/svt/Evaluations/COUPES.GIF: No such file or directory send_files failed to open www.lft.mg/matieres/svt/Evaluations/DBasalte.gif: No such file or directory send_files failed to open www.lft.mg/matieres/svt/...
2016 Jul 24
2
Weighting Schemes: Evaluation results
Hi all, I have evaluated new weighting schemes along with their existing counterparts in Xapian to compare and see which one does better job. Also, I have put together all the results files for easy access here: https://github.com/ivmarkp/xapian-evaluation/tree/evaluation/run and a README for getting started with xapia...
2017 Jan 05
0
OpenSCAP failures to to OS version?
...module is not accepting CentOS 7 as RHEL 7 for rules purposes, despite an early check for "Community Enterprise Operating System 7? which succeeds. 1. Am I correct in why it?s failing? 2. Is this a bug, or an accepted behavior given that CentOS isn?t actually RHEL? Noam I: oscap: Evaluating XCCDF rule 'accounts_password_pam_retry'. I: oscap: Evaluating definition 'oval:org.open-scap.cpe.rhel:def:7': Red Hat Enterprise Linux 7. I: oscap: Definition 'oval:org.open-scap.cpe.rhel:def:7' evaluated as false. I: oscap: Evaluating definition 'oval:org.open-sca...
2003 Oct 24
2
NLME: gls parameter evaluation inconsistency (PR#4757)
Full_Name: W.B.Kloke Version: 1.8.0 OS: FreeBSD-4.7 Submission from: (NULL) (195.253.22.63) I found a parameter evaluation inconsistency in NLME package. I tried to use gls() inside a function, and I wanted use gls() for different subsets of a data frame: prgls <- function(name){ gls( log10(Y)~(cond-1)+(cond-1):t ,pr,subset=subject==name)} Applying this function with a string as parameter like prgls("VM&...
2009 Apr 29
2
if condition doesn't evaluate to True/False
...ery sub group has a where condition linked with it. Database1 Where clause was not found for a particular subgroup, sub_grp_whr_cls_data[sbgrp_no,1] value was NULL So the condition (*sub_grp_whr_cls_data[sbgrp_no,1]=="NULL" || sub_grp_whr_cls_data[sbgrp_no,1]==""*) should evaluate to TRUE ,but it evaluated to NA So the if block where I used the the condition threw error If(*sub_grp_whr_cls_data[sbgrp_no,1]=="NULL" || sub_grp_whr_cls_data[sbgrp_no,1]==""*) i.e if(NA) Error:-- Error in if (sub_grp_whr_cls_data[sbgrp_no, 1] == "NULL" || sub...
2014 Nov 15
1
Error "promise already under evaluation ..." with function(x, dim=dim(x))
I've meant to ask the following for several years now. I understand why: > foo <- function(x, dim=dim) { dim } > foo(1) Error in foo(1) : promise already under evaluation: recursive default argument reference or earlier problems? gives an error, but why wouldn't/couldn't the following work? > foo <- function(x, dim=dim(x)) { dim } > foo(1) Error in foo(1) : promise already under evaluation: recursive default argument reference or earlier pr...
2006 Nov 20
1
undefined method `stringify_keys!' for "4":String - Meaning of this?
Hi, I have the following on a view <% for evaluation in @evaluations %> <td><%=h evaluation[0].name %></td> <td><%=evaluation[1].object_id %></td> <td><%= link_to( "Start", :action =>''evaluatie'', :id => evaluation[1].object_id) %></td> <%e...
2011 Sep 08
0
"Could not evaluate: Not a directory" errors with pluginsync
...ng Puppet/Puppetmaster 2.6.4 (2.6.4-2ubuntu2 on Ubuntu 11.04 to be precise), and after enabling pluginsync on the agents to make our custom facts available, all puppet runs start with the output: info: Retrieving plugin err: /File[/var/lib/puppet/lib/puppet/parser/functions/basename.rb]: Could not evaluate: Not a directory - /var/lib/puppet/lib/puppet/ parser/functions/basename.rb err: /File[/var/lib/puppet/lib/puppet/parser/functions/dirname.rb]: Could not evaluate: Not a directory - /var/lib/puppet/lib/puppet/ parser/functions/dirname.rb err: /File[/var/lib/puppet/lib/puppet/parser/functions/gsu...