search for: variablename

Displaying 20 results from an estimated 64 matches for "variablename".

Did you mean: variable_name
2019 Apr 25
2
Coding style. VariableNames, not variableNames?
Hey, A colleague just pointed out that the style guide says: *Variable names* ... should be camel case, and start with an upper case letter I was under the impression that variables were supposed to be camel case, without a leading upper case, as currently recommended for function names. Is this a somewhat recent change? If so, could someone share a regex / script for updating the previous style
2009 Mar 09
1
Data Restructuring Question
I think I am overlooking a call or concept in R to help me easily and quickly restructure my data.frame:   Sometimes the data I receive looks like: VariableName, Run1, Run2, Run3, Location temp,               15.0,  16.0,  17.0, There   And other times it looks like: VariableName, Run, Location temp,               17.0, There   I would like to use the header information in order to be able to restructure the first data set to have a similar look as the se...
2007 Mar 01
2
How can I use the "GET VARIABLE variablename" in AGI
..."\"\n"; my $result = <STDIN>; &checkresult($result); ...... when the agi execute; asterisk conosle show that : AGI Rx << GET VARIABLE EXTEN "" AGI Tx >> 520-Invalid command syntax. Proper usage follows: AGI Tx >> Usage: GET VARIABLE <variablename> Returns 0 if <variablename> is not set. Returns 1 if <variablename> is set and returns the variable in parentheses. example return code: 200 result=1 (testvariable) AGI Tx >> 520 End of proper usage. ----------------------------------------------------------------...
2012 Oct 29
6
export variable from bash to R
...script to myscript.R. I know I can use the command Rscript, but I don't know how to declare in bash which variable will be accessed by the "commandArgs" command in myscript.R. So my bash script looks about like this: #!/bin/bash VARIABLES=( a b c d ) for i in ${VARIABLES[@]}; do VARIABLENAME=$i Rscript -e 'source("myscript.R")' done In myscript.R, I would like to use the current VARIABLENAME when executing the program, i.e., myscript <- function() { args <- commandArgs(TRUE) # args should now be set to either a,b,c, or d load(paste("/home/user/../.....
2014 Aug 04
3
[LLVMdev] LLVM AllocaInst and StoreInst
...ks like this llvm::Value* codeGenSymTab(llvm::LLVMContext& context) { > printf("\n CodeGen SymTab \n"); > Value *num = ConstantInt::get(Type::getInt64Ty(context), aTable.value, > true); > Value *alloc = new AllocaInst(IntegerType::get(context, 32), > aTable.variableName,entry); > StoreInst *ptr = new StoreInst(num,alloc,false,entry); > } Here goes the SymTab definition: struct SymTab { char* variableName; int value; llvm::Value* (*codeGen)(llvm::LLVMContext& context); }; When I try to execute the output file,I get the following er...
2008 Jul 30
1
adding lines to multiple plot
...cannot figure out how to get each line appear on the correct histogram plot. I know in Matlab there is a hold function, is there something similar in R? the following is the code i have used to get mutiple plots and then add all the lines to the final plot: ##find unique column names in table variablenames<-unique(names(variables)) ## define number of unique names Nvariables<-length(variablenames) ##for loop required for labelling of histograms and to tell how many hist to make for(i in 1:Nvariables){ par(mfrow=c(1,1),ask=TRUE) } ##use lapply for dataframes creates hist for each variabl...
2002 Dec 18
3
summary stats including NA's into new dataframe
List, I am trying to extract summary statistics from a data frame with several variables (and NAs) into a dataframe with the columns: Variablename (ie the colnames of original data), mean, stdev, max, min, Valid N, Missing Values. Extracting the statistics is straightforward using stack and aggregate. However, I haven''t succeeded in obtaining the number of Missing Values. I can extract these from describe (Hmisc library), but surely...
2002 Dec 05
1
(no subject)
hi, suppose you have a for-loop like this: for(i in1:x) {} ... now you want to generate a variable in every cycle (since you do not know the size of x in beforehand you have to do this dynamically). the variable should e.g. look like this: variableName1<-c() (if x==1) variableName2<-c() (ifx==2) variableName3<-c() (if x==3) .. .. i tried this(which obviously didn't work): paste("variableName",x,sep="")<-c(2,3,4) so i need something similiar to this (but working!)! thanks for help, greetinx jan
2008 Dec 15
3
Variables for dial plan
I want to have a arbitary named variable within the client's user details in sip.conf [client1] dialplan=NZ .......... In extensions.conf (Logic expressed using PHP style) if ($dialplan == NZ) { $NAT = 0; $INT = 00; }; and in the [outgoing] section ; Australia exten => _${INT}61[278]NXXXXXX.,1,Set(CDR(UserField)=AUSTRALIA) exten =>
2016 Apr 12
3
selinux getsebool request
...bility to put an unless in the execution of setsebool, to key off whether its necessary -- to reduce a SELinux puppet run from 250 seconds to about 60. Unfortunately, in the current format, getsebool has defeated me. Would it be possible to have getsebool extended, so something like getsebool -b $variablename would return true or false as the exit code?
2010 May 28
2
[LLVMdev] Retrieving Underlying Type from AllocaInst
Is there a recommended way to retrieve the original type from an AllocaInst object? For example, I am creating alloca instructions using the IRBuilder interface like: alloca = builder.CreateAlloca( Type::getDoubleTy( context ), 0, variableName.c_str() ); and I place the alloca into a symbol table. Later when I am generating instructions for an assignment operation, I want to check the type of the variable allocated with the CreateAlloca instruction so I can see if I need to do type conversion before the store instruction, However, I ca...
2005 Dec 07
1
Dots argument in apply method
...## specific manner? ... ## additional arguments passed to fun ) { ## attach the data frame contained in obj attach(obj at Data) ## make sure to detach it at the end on.exit(detach(obj at Data)) ## get the variable names variableNames <- names(obj at Data) ## check that one variable is named "observation" if (!("observation" %in% variableNames)) stop(paste("The slot Data of", deparse(substitute(obj)), "does not contain an observation variable as it shou...
2007 Aug 24
7
Can I do this in a template..?
...gt; template("template.erb"), } } template.erb: ------------- <% if name.include? "foofile" -%> This is foofile <% else -%> This is barfile <% end -%> I''m not a big ruby hacker - yet ;-) I know that I can test the contents of a variable with "variablename.include?". But can I access the "name" of the calling file...? -- Med venlig hilsen Juri Rischel Jensen Fab:IT ApS Vesterbrogade 50 DK-1620 København Tlf: 70 202 407 / Fax: 33 313 640 www.fab-it.dk / juri@fab-it.dk
2002 Dec 05
0
(no subject)
...> hi, > suppose you have a for-loop like this: > > for(i in1:x) {} ... > > now you want to generate a variable in every > cycle (since you do not know the size of x in > beforehand you have to do this dynamically). > > the variable should e.g. look like this: > variableName1<-c() (if x==1) > variableName2<-c() (ifx==2) > variableName3<-c() (if x==3) > .. > .. > i tried this(which obviously didn't work): > > paste("variableName",x,sep="")<-c(2,3,4) > > so i need > something similiar to this (but workin...
2004 May 03
1
Setting up contrasts
I am using the following model: lm <- lm(mydata[[variableName]] ~ Age + Gender + Group, data=mydata) There are 5 groups in "Group": nonc (the control), c1,c2,c3 and c4. How do I contrast nonc vs the others? and How do I contrast c1 vs other c's (ie c2,c3,c4 as a subgroup)? I have looked at the contrasts option in lm and model.matrix and am...
2008 Apr 22
1
levels in dataframes
Dear R community, I wish to ask a short question concerning factor-data in dataframes: When I subset the data and get rid of all data for one level, I still retain the level name (obtained by levels(dataframe$variablename) ). Is there a convenient way to get rid of the levels for which all data has been deleted? Thank you and wishing you an excellent day! Georg. **************************************************** Georg Ehret Johns Hopkins Baltimore, US [[alternative HTML version deleted]]
2004 Nov 02
1
R data editor
Hi, I have installed R2.0.0 on my mac with the new gui. Almost everything works fine now. Except when I run RCommander and want to edit a dataset with the data editor. Normally when you click on the variablename on top of a row a small dialog box should open where you can change the name and the between numeric uand character. But this dialog box does not open. Thanks for any help, tobi [[alternative HTML version deleted]]
2011 Nov 08
1
save at relative directory
Dear all, I have a variable called thres and before I run a script I set it to a value like thres<- -10 at the end of the execution I am issuing a save(variablename,file='Results') which will end up with a file saved at the current directory with the name Results   I would like though to use thres value and do the followingg save at the directory called 10 so to get ./10/Results, (yes I want this in a relative order)   My question is how I can also che...
2010 Jan 27
1
control of scat1d tick color in plot.Predict?
Hi All, I have a quick question about using plot.Predict now that the rms package uses lattice. I'd like to add tick marks along the regression line, which is given by data=llist(variablename) in the plot call. The ticks show up fine, but I'd like to alter the color. I know the ticks are produced by scat1d, but after spending a fair bit of time going through documentation, it still isn't clear to me how to do this in the context of lattice. Guidance would be greatly appreciate...
2012 Jul 09
1
Using loops to create matrices where the variables is called with $
Hi there, I am trying to make a VECM model which does a loop to pull of long run impact coefficients. The problem is that to calculate these for a,b,c I use the irf() function and they are stored in irf$a, irf$b, irf$c. What I would really like is to be able to call irf$[variablename(x)] where I can loop through i:n for x and it will pull out the right variable. This is a bit of a waste of time for 3 but I want it to do bigger sets and sets of different lengths so I don;t have to keep recoding it. Any advice would be much appreciated, Cheers, Drew [[alternative HTML versio...