similar to: Function to create variables with prefix

Displaying 20 results from an estimated 110 matches similar to: "Function to create variables with prefix"

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. --j -- Jonathan A. Greenberg, PhD Assistant Professor
2009 Aug 03
2
Scale set of 0 values returns NAN??
Hi, More questions in my ongoing quest to convert from RapidMiner to R. One thing has become VERY CLEAR: None of the issues I'm asking about here are addressed in RapidMiner. How it handles misisng values, scaling, etc. is hidden within the "black box". Using R is forcing me to take a much deeper look at my data and how my experiments are constructed. (That's a very
2005 Aug 17
2
About R variable references
Hello Group, I could use an advice on how SEXP handles work. My aim is to implement a system where I initially set a few global variables that are used for communication between C and R code. Then I do some work with R code and periodically call a function of my own that will update the system state. Such a design is useful for many purposes (for GUIs to name one). I am not entirely sure that R
2005 May 17
1
sip show registry empty ?!?!!?
Hi all, i've installed Asterisk with AMP. I've created 4 extensions (for 4 SIP phones) and this is what my "sip show users" return: moloch*CLI> sip show users Username Secret Accountcode Def.Context ACL NAT 204 moira from-internal No No 203 michele from-internal No
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 NA'a, because it
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
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
2009 Oct 28
3
variable labels to accompany data.frame
Often it is useful to keep a "codebook" to document the contents of a dataset. (By "dataset" I mean a rectangular structure such as a dataframe.) The codebook has as many rows as the dataset has columns (variables, fields). The columns (fields) of the codebook may include: ? variable name ? type (character, factor, integer, etc) ? variable label
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
2016 Apr 25
2
Is set_var allowed with pjsip_wizard.conf ?
On Mon, Apr 25, 2016 at 11:11 AM, Olivier <oza.4h07 at gmail.com> wrote: > > > > 2016-04-25 18:14 GMT+02:00 George Joseph <gjoseph at digium.com>: > >> >> >> 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
2011 Jul 30
3
Problem with effects package
Dear List, Several times I use this package I get the error message shown below. When 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
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,
2012 Dec 01
1
setvar from chan_dahdi.conf
Would someone be able to give an example of a working use of setvar from chan_dahdi.conf? I am trying to create a custom variable like I use in sip.conf but I have been completely unsuccessful getting any variable set using setvar to appear for a DAHDI channel. I am running 1.8.11-cert8 and am using the newer format (but I have tried using the older [channels] format). Here is an example:
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 (including without main=" ")
2004 Aug 13
2
how to plot an array with labels
How can i plot an array and instead of having on the x labels the indexes of the array I want to display an other String array of the same length
2010 May 13
2
Adding name to nth row
Hello, I have a data frame with many rows, and I want to create a column with a name only at every 12th row, starting from 97 to 278. Thanks in advance!
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 Jun 19
1
save and load in R
I have a list of txt files that I want to convert into .rdata R data object. filenames 1. "./file1.txt" 2. "./file2.txt" 3. "./file3.txt" 4. "./file4.txt" 5. "./file5.txt" 6. "./file6.txt" 7. "./file7.txt" 8. "./file8.txt" 9. "./file9.txt" 10. "./file10.txt" I saved these files as for ( i in
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 =