Displaying 20 results from an estimated 64 matches for "variablenames".
Did you mean:
variablename
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
2007 Mar 01
2
How can I use the "GET VARIABLE variablename" in AGI
Hi,All,
I wang to use AGI in asterisk1.4.
AGI file / myperl.agi
#!/usr/bin/perl
use strict;
......
print STDERR "7. Testing GET VARIABLE...";
print "GET VARIABLE EXTEN \"\"\n";
my $result = <STDIN>;
&checkresult($result);
......
when the agi execute; asterisk conosle show that :
AGI Rx << GET VARIABLE EXTEN ""
AGI Tx >>
2012 Oct 29
6
export variable from bash to R
Dear R experts
This probably seems very easy to you guys, but I'm a beginner and would be
really glad if someone helped me with this:
I am trying to automate the execution of an R script (let's call it
"myscript.R") by passing a variable from a bash 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
2014 Aug 04
3
[LLVMdev] LLVM AllocaInst and StoreInst
Hi,
I am trying to write a simple interpreter.
I am trying to generate LLVM IR for assignment operation. The code for the
generation part looks 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
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 variable...
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
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):
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
Out of faint curiosity, how do we push change requests upstream to RHEL?
I'm using puppet to automate systems, including the application of
SELinux policy. While setsebool -P is non-damaging to repeat, it is time
consuming -- taking about 45 seconds per execution to process the
existing policy and re-commit to disk.
I'd like a simple ability to put an unless in the execution of
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
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 shoul...
2007 Aug 24
7
Can I do this in a template..?
Hi all,
I have a situation where I want to use the same template to create
two different files in two different classes. I''ve tried to lookup
some information on what is possible with templates, how advanced you
can get, but haven''t found much. I guess it''s one of the areas where
I should contribute to the docs - once I figured out what I can do,
that is...
2002 Dec 05
0
(no subject)
Alternatively if you want to avoid using lists, you can create the variables like this:
for (i in 1:10) assign(paste("x",i,sep=""),i^2)
and view them subsequently like this:
for (i in 1:10) print(get(paste("x",i,sep="")))
Phil
-----Original Message-----
From: Uwe Ligges [mailto:ligges at statistik.uni-dortmund.de]
Sent: 05 December 2002 12:58
To: Jan
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
really none the wiser.
Though it
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.
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
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
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
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