Displaying 17 results from an estimated 17 matches for "somevar".
2017 Aug 24
5
functions from 'base' package are not accessible
Hi all!
The following code (executed in console)...
somevar <- data.frame(v1 = 1:5, somestring = 6:10, v3 = 11:15, v4 = 16:20);
somevar %>% gather(key = var, value = val, which(names(somevar) == "somestring"):length(somevar)) %>% head(2);
throws...
Error in which(names(somevar) == "somestring") :
could not find fun...
2017 Aug 24
0
functions from 'base' package are not accessible
.....)==....
The non-standard evaluation in the tidyverse can cause confusion.
Bill Dunlap
TIBCO Software
wdunlap tibco.com
On Thu, Aug 24, 2017 at 4:32 AM, Eugeny Melamud <
Eugeny.Melamud at lanit-tercom.com> wrote:
> Hi all!
>
> The following code (executed in console)...
> somevar <- data.frame(v1 = 1:5, somestring = 6:10, v3 = 11:15, v4 =
> 16:20);
> somevar %>% gather(key = var, value = val, which(names(somevar) ==
> "somestring"):length(somevar)) %>% head(2);
> throws...
> Error in which(names(somevar) == "somestring") :...
2005 Oct 27
5
Save output of Ajax.InPlaceEditor to a variable?
...get the new value and throw that in a hidden form variable
Is this possible? I couldn''t really see a way to short circuit the
logic so the ajax communication is bypassed. Perhaps this would work:
new Ajax.InPlaceEditor(''editme'', '''', {variable:''somevar''});
When the user presses "save" then "somevar"''s value is updated.
Thanks,
--Bill
2005 Aug 10
0
questions about extend
I''m working with prototype.js to make some widgets, and trying to
figure out working with extend.
I''d like to be able to to extend a class and then call a function from
the super class.
var SuperClass = Class.create();
SuperClass.prototype = {
initialize: function(somevar){
this.somevar = somevar;
}
}
var SubClass = Class.create();
SubClass.prototype = (new SuperClass()).extend({
initialize: function(somevar, anothervar){
super.initialize(somevar); //extend super class'' function here
this.anothervar = anothervar;
}
});
--
Ryan...
2008 Sep 02
0
No subject
...address 0x00000000 usually is not assigned
any meaning. If a program tries to call a function at that address, it
will cause a page fault executing 0x00000000. The program has a chance
to recover from things like this; if it doesn't, it crashes.
A "read" is usually a pointer access (*somevar) or
(somevar->attribute), write is usually assignment (somevar = value) or
(somevar++), and execute is usually a function call
(somevar(arguments)).
The "Backtrace" is a list of functions that are currently being
executed. The first one is the one that is running at the time of the
cr...
2009 Sep 09
0
Custom CDR Help
...tting back into Asterisk stuff.
I am trying to remember/understand how CDR works and after lots of trial and
error and searching the archives, google etc, I am stuck and have a few
questions.
I have setup custom CDR and am trying to figure out the following:
1- Can I just set a variable like set(SomeVar=SomeValue) Then stick this is
cdr_custom.conf ${SomeVar} and expect ${SomeVar} to be written out to the
CDR? My thought is that it won't work because only predetermined variables
for CDR can be set but not new variables created.
2- CDR userfield is useful to a point. The problem is we are u...
2005 Aug 10
2
extend question
...of a function from a subclass?
SuperClass = Class.create();
SuperClass.prototype = {
initialize: function(){
this.varA = '''';
this.varB = '''';
}
}
SubClass = Class.create();
SubClass.prototype = (new SuperClass()).extend({
initialize: function(somevar) {
this.somevar = somevar;
}
});
--
Ryan P. Miller
ryan@numinalabs.com
2012 Feb 18
3
foreach %do% and %dopar%
Hi everyone,
I'm working on a script trying to use foreach %dopar% but without success,
so I manage to run the code with foreach %do% and looks like this:
The code is part of a MCMC model for projects valuation, returning the most
important results (VPN, TIR, EVA, etc.) of the simulation.
foreach (simx = NsimT, .combine=cbind, .inorder=FALSE, .verbose=TRUE) %do% {
MCPVMPA = MCVAMPA[simx]
2002 Mar 17
2
using "by" and indicies
I sent this to the list last week, and haven't seen it pop up. Either
I deleted it when it did appear, or possibly it was destroyed as
spam...? If it did appear and I somehow missed it, appologies.
In a nutshell, can the function FUN supplied to by() deduce
what level of factor by() was on when FUN was called? I've
been digging through the functions, and can't see where the
2008 Nov 04
2
Problem: Sweave and math environments
Dear list,
I using R as the statistical package for my dissertation in political
sciences and I am using Sweave for documenting the work done for the
creation of my dataset. However, I have a problem with Sweave (which is
great, by the way) which is (hopefully) easy to solve:
I want Sweave to "echo" my code, so that the R source code of the code
chunks appears in the Latex
2006 Jun 15
1
Queues and local channels
...to add a local channel to a queue. My
(simplified) dial plan is
[AddMember]
exten => 789,1,AddQueueMember(SomeQ|Local/456@Agent)
[Queue]
exten => 123,1,Queue(SomeQ|nt|||120)
exten => 123,2,Hangup()
exten => h,1,NoOp(InQ)
[Agent]
exten => 456,1,Dial(SIP/456)
exten => 456,2,Set(SomeVar=SomeValue)
exten => 456,3,Hangup
exten => h,1,NoOp(InAgent)
when a call comes into the Queue, it is passed to the 456 agent. All is
fine and well.
So, what's my problem ? Well, I want to be able to trap the hangup
event, but with data created in the [Agent] context. I noticed that th...
2007 Oct 03
0
app_read prematurely bridges channels
...altered the results. An example of the behaviour:
Calling party on channel SIP/YYY dials XXX, hits dialplan:
exten => XXX,1,Dial(SIP/ZZZ,,mM(mymacro))
Macro looks something like:
[macro-mymacro]
exten => s,1,Playback(somefile) ;This plays fine on channel SIP/ZZZ
exten => s,n,Read(somevar,audioprompt) ;audioprompt plays fine,
then immediately after playing the prompt, channel SIP/ZZZ starts
hearing audio data from SIP/YYY, moh stops on SIP/YYY, however no audio
from SIP/ZZZ is sent to SIP/YYY until the macro exits
exten => s,n,Playback(someotherfile) ;This and subsequen...
2008 Feb 13
8
comparing ajax.updater div in js
...but it doesn''t. Instead, when I try debugging and
display test in a div, it shows up as "undefined."
Here is example code:
function Check(){
new Ajax.Updater(''testdiv'',''randy.php?ajax=1'',
{method:''post'',parameters:''somevar=''+somevalue,evalScripts:false});
//wha la, testdiv now displays "SomeString". but wait! crap!.....
test = document.getElementById(''testdiv'').value;
if (test == "SomeString"){
document.getElementById(''testdiv'').innerHTML=test;
retur...
2006 May 25
13
functions calling functions
I think I may be missing a fundamental concept I hope someone can help
me with. I have functions that won''t call other functions. Particularly
after an Ajax request.
In the following object the ajax request onComplete calls the
ajaxFetched function successfully. ajaxFetched tries to call function2
but function2 does not execute.
Any ideas or workarounds?
thanks
Kevin
o =
2004 Oct 13
4
incomplete function output
Dear R users,
I have a function (below) which encompasses several tests.
However, when I run it, only the output of the last test is
displayed. How can I ensure that the function root(var)
will run and display the output from all tests, and not
just the last one?
Thank you,
b.
root <- function(var)
{
#---Phillips-Perron
PP.test(var, lshort = TRUE)
PP.test(var, lshort = FALSE)
2004 May 15
0
" cannot allocate vector of length 1072693248"
...; Just loaded: 2 of 30 . AIG Assigning vectors and outcomes....
>>> Error: Object "USdata" not found
>>
>>
>> I see you "attached" the dataset prior to the loop, but this
>> seems to be
>> circumvented in that you call "USdata$<somevar" in each case
>> within the
>> loop.
>>
>> I've had it happen that after noodling around, I'm working
>> only by virtue of
>> having leftovers from prior work, but with a fresh launch I
>> discover that it
>> won't work after all.
&g...
2010 Apr 14
35
Conditionally adding a link to a form -- how?
I''ve got two entities created by scaffolding: Expense & Vendor
In Expense#new there''s a form with a Vendors-drop-down and a NewVendor-
button.
The latter button brings up Vendor#new.
The Create button in Vendor#new brings up Vendor#show with Edit & Back
links.
I want to append a third link conditionally to Vendor#show: if the
Expense#new form led to the Vendor#show