Displaying 20 results from an estimated 20 matches for "myvariable".
2013 Feb 01
3
Loading a list into the environment
R-helpers:
Say I have a list:
myvariables <- list(a=1:10,b=20)
Is there a way to load the list components into the environment as
variables based on the component names? i.e. by applying this theoretical
function to myvariables I would have the variables a and b loaded into the
environment without having to explicitly define them.
-...
2005 Aug 17
2
About R variable references
...ode that hopefully make clear what I am
trying to achieve. The code is provided for illustration purposes only
and I did not try to compile it.
Best regards,
Markku Mielityinen
# C CODE
#####################################################################
SEXP myrho = R_GlobalEnv;
SEXP myvariable = R_NilValue;
SEXP myfunction = R_NilValue;
SEXP myinit(SEXP var, SEXP func) {
myvariable = var;
myfunction = func;
return R_NilValue;
}
SEXP myexec(/* probably has some parameters that are omitted in this
example */) {
int state;
SEXP thecall;
/* do some work, then set the state and call...
2005 Aug 29
9
can a class find out it''s instance name?
Hi friends - a javascript question....
Does the prototype object add some way for a class to find out the
variable name of its instance variable?
Or does javascript have some built in way to do this?
This is confusing to describe - but if I define a variable as some
object:
var myVariable= new Widget(''fdfa'');
can some built-in method inside the Widget class be called to find out
that this particular instance is named "myVariable"?
The reason is that this widget writes some html elements with the
Builder. I want one of the elements it writes to be...
2008 Jul 14
1
Function to create variables with prefix
...tion would take a data.frame, an array of variables, and a prefix
string. It performs a transformation on the variables (e.g. logs and
scales), and creates new variables with the same names as the inputs, but
with the prefix_string prepended.
So, a sample call would look like:
myfunction(mydata, myvariables, "norm_")
And if myvariables contained variables named "var1", "var2", etc., the
function would generate:
mydata$norm_var1
mydata$norm_var2
Thanks,
Moira
[[alternative HTML version deleted]]
2009 Jul 09
1
Strange t-test error: "grouping factor must have exactly 2 levels" while it does...
Hi,
Could anyone tell me what is wrong:
> length(unique(mydata$myvariable))
[1] 2
>
and in t-test:
(...)
Error in t.test.formula(othervariable ~ myvariable, mydata) :
grouping factor must have exactly 2 levels
>
I re-checked the code and still don't get what is wrong.
Moreover, there is some strange behavior:
/1 It seems that the error is vulnerable to N...
2012 Oct 18
1
legend of maps generated by function symbols
I generated maps with the function symbols (graphics). These are basic
maps generated with :
symbols(x,y,circles=myvariable)
where x et y are spatial coordinates corresponding to replicates of
"myvariable".
I would associate legend to this kind of maps, is it possible?
Regards,
Marion.
--
Marion Jacquot
Laboratoire de Chrono-environnement
UMR UFC/CNRS 6249 USC INRA
Universit? de Franche-Comt?
Place Lecl...
2010 May 13
2
Help with reading information of "summary"-Object
Hi,
I am quite new to R - but quite expierience in programming. Nonetheless
I have some problemes in accessing information of the "summary" object.
Here is what I do:
model <- lm ( y ~ myVariable )
"summary(model)" gives me an object which has a lot of information about
the regression. Now I'd like to access programmatically the level of
significance which is marked with "***" and ("**") according to its
confidence-interval. As I can access all informat...
2009 Oct 28
3
variable labels to accompany data.frame
...tically in a convenient form. For instance, in Stata one can define a "label" for
a variable and it is thenceforth linked to the variable. In output from certain modeling and
graphics functions, Stata by default uses the label rather than the variable name.
Furthemore: In Stata, if "myvariable" is labeled numeric (in R lingo, a factor), and I type
codebook myvariable
then Stata tells me, among other things, the "levels" of myvariable.
Does a tool of this sort exist in R?
The prompt() function is related to this, but prompt(someDataFrame) creates a text file on disk. Th...
2007 May 09
3
select menu
Hello everybody.
I want to make a menu with the incoming calls, I want that when someone calls the Asterisk play a record (in gsm) and them the caller must choose a option (1,2 or 3).
if he choose 1 it will redirect to 101 extension
if he choose 2 it will redirect to 102 extension
if he choose 3 it will redirect to 103 extension
my extensions.conf is this one:
[default]
exten =>
2002 Nov 04
3
New to wine question concerning Path Variable
Howdy,
I am trying to run a Cobol Compiler through wine. I am running RH7.3 with a
current wine release. My directory structure is /usr/share/wine-c/COBOL/. I
have been successful in running other applications through wine, but not
ones that require a PATH= entry.
My problem is: it's looking for an entry in the PATH environment variable
that includes 'C:\COBOL' which stores
2011 Jul 30
3
Problem with effects package
...en I work out simple examples, it turns out to be fine, but when
working with real and moderate size data sets I always get the same
error.
Do you know what could be the cause of the problem?
Error in apply(mod.matrix[, components], 1, prod) :
subscript out of bounds
Error in plot(effect("myvariable", glm.sev1)) :
error in evaluating the argument 'x' in selecting a method for
function 'plot'
Thanks,
Lars/
2016 Apr 25
2
Is set_var allowed with pjsip_wizard.conf ?
...ually don't remember (but
I'll check).
"same = n,Verbose(0,${PJSIP_ENDPOINT(1000,xxxxx)})" works for me but the
final ')' is missing in you example, maybe just a cut and paste error
though.
There's also an alternate way to specify arbitrary variables...
[myendpoint]
@myvariable = myvalue
You can then retrieve it with ${PJSIP_ENDPOINT(1000, at myvariable)}
The '@' tells the config to just treat is as an opaque extended variable.
> PS: In the above example, 1000 is the name of the PJSIP endpoint (as
> displayed with pjsip show endpoint 1000)
>
&g...
2007 Nov 14
4
Problem with AGI Script
I have asterisk 1.2.18 running on a new system we just installed. Although
I've used AGIs many times in the past, I'm stumped on this one. It may just
be a simple issue that I need another eyeset to look at.
My AGI does the following:
#!/usr/bin/perl
#Load a few modules...
use Asterisk::AGI;
use DBI;
$AGI = new Asterisk::AGI;
#Grab input from Asterisk
my %input =
2011 Feb 11
2
tzone and DST
I'm reading in ~3 years worth of data that includes hourly timestamps.
Presumably to avoid DST confusion, all the data is in PST time zone -- no
discontinuities in the spring or fall.
The data comes in a csv file, which I'm reading with
myvariable <- read.csv("my_data_file.csv",header=FALSE,
col.names=c("timedate","values"),colClasses=c("POSIXct","numeric"))
The time zone comes in as PST or PDT, as appropriate. That leads to
problems in the spring:
> temps$timedate[2185:2190]
[1] &qu...
2004 Nov 26
1
Coplot Given text
Greetings:
I am unsuccessful in suppressing "Given : myvariable" from a coplot. There was such a question in the past but the thread breaks down. I am sure this is a "for dummies" question :-). I tried:
coplot(myvar~myvar | myvar, show.given=FALSE, xlab="....", ylab="...", main=" ")
and some other variations (includ...
2012 Dec 01
1
setvar from chan_dahdi.conf
...[channels]
[phone_template](!)
usecallerid = yes
hidecallerid = no
callwaiting = no
threewaycalling = yes
transfer = yes
echocancel = yes
echotraining = yes
immediate = no
context = longdistance
signalling = fxo_ks
[test1](phone_template)
callerid = "Test 1" <(111)222-3333>
setvar=myvariable=test
dahdichan = 1
I have tried every example I have been able to find but nothing appears in a DumpChan. Thank you.
Chet Stevens
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20121201/13f68435/att...
2006 Apr 18
0
RE: innerHTML and scripts not running and evalScriptsin IE
...t page you call contents of 2.html that has a script tag in which it does document.write(''hello'');
Now in 1.html define the following -
//overwrite browsers default document.write
//to prevent new output stream to be opened
document.write = function(text){
myVariable = text;
};
So, when content from 2.html will come that has document.write() it will go into myVariable and you can manipulate as you like.
Hope this helps!
Remember my name :)
-Mandy.
2005 Dec 27
6
avoid multiple render per action
Hello,
I have a hash that contains categories, and each category ID is a
hash of subcategories. What i want to do is dynamically load that
hash, loop thru it, for each category , subcat run a query against the
DB, and render a partial. The issue is i put the render:partial in a
for loop but you can only render once per action. What is the best
way to loop thru all my categories without a
2016 Apr 25
2
Is set_var allowed with pjsip_wizard.conf ?
On Mon, Apr 25, 2016 at 10:00 AM, George Joseph <gjoseph at digium.com> wrote:
>
>
> On Mon, Apr 25, 2016 at 9:29 AM, Olivier <oza.4h07 at gmail.com> wrote:
>
>> Hello,
>>
>> I've just discovered PJSIP 's support of set_var setting in pjsip.conf.
>> Is this setting also supported in pjsip_wizard.conf ?
>> On a fresh 13.8.2, it
2013 Feb 11
1
Simple frequencies using svy design
Hello,
excuse me if this is trivial. I have some survey data with the following
design
MyDesign<-(id=ident, weights=~fwgt, fcp=~nval1+nval2, data=hh_data1)
I would like to run simple frequency tables such as those provided by the
freq() function of rgrs to check the impact of the sampling design on my
Ns. Anyway I can do this? thanks, V
[[alternative HTML version deleted]]