search for: variabel

Displaying 20 results from an estimated 41 matches for "variabel".

2007 Oct 30
4
Postgresql and shell script
...-P $PG_user" postgres su -c "psql -d$PG_database -h localhost -U$PG_user -W -f postgresql.sql " postgres </snip> when the script executes those command, it ask for a password, how could I do this without have to enter the passwd, I would like that it reads the password from a variabel, that excists in a separate file, like <variable file> PG_passwd=secret PG_user =username PG_database=simple </variable file> Tronn -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.centos.org/pipermail/centos/attachments/20071030/adab1f...
2006 Feb 08
2
SV: GotoIf number exists in file. How can i do this?
Oh. So how can I do this? If I write something in PHP, how do I make it output to an Asterisk variabel? I need to set a variable in asterisk to TRUE or FALSE based on the result of the PHP-script. ________________________________ Fra: asterisk-users-bounces@lists.digium.com [mailto:asterisk-users-bounces@lists.digium.com] P? vegne av Morgan Gilroy Sendt: 8. februar 2006 15:28 Til: Asterisk U...
2018 May 26
3
Grouping by 3 variable and renaming groups
ALCON I'm trying to figure out how to rename groups in a data frame after groups by selected variabels. I am using the dplyr library to group my data by 3 variables as follows # group by lat (StoreX)/long (StoreY) priceStore <- LapTopSales[,c(4,5,15,16)] priceStore <- priceStore[complete.cases(priceStore), ] # keep only non NA records priceStore_Grps <- priceStore %>% group_...
2012 Feb 25
5
which is the fastest way to make data.frame out of a three-dimensional array?
foo <- rnorm(30*34*12) dim(foo) <- c(30, 34, 12) I want to make a data.frame out of this three-dimensional array. Each dimension will be a variabel (column) in the data.frame. I know how this can be done in a very slow way using for loops, like this: x <- rep(seq(from = 1, to = 30), 34) y <- as.vector(sapply(1:34, function(x) {rep(x, 30)})) month <- as.vector(sapply(1:12, function(x) {rep(x, 30*34)})) my.df <- data.frame(month, x...
2018 May 26
0
Grouping by 3 variable and renaming groups
...oreID <- paste("Store", seq_len(nrow(priceStore_Grps)), sep = "_") Hope this helps, Rui Barradas On 5/26/2018 2:03 PM, Jeff Reichman wrote: > ALCON > > > > I'm trying to figure out how to rename groups in a data frame after groups > by selected variabels. I am using the dplyr library to group my data by 3 > variables as follows > > > > # group by lat (StoreX)/long (StoreY) > > priceStore <- LapTopSales[,c(4,5,15,16)] > > priceStore <- priceStore[complete.cases(priceStore), ] # keep only non NA > records...
2006 Sep 27
1
equivalent of model.tables for an lm.object?
Dear all, I run a linear model with three significant explanatory variabels x1: a factor with 4 levels x2 and x3: factors with two levels each x4: continuous model <- lm(y ~ x1 + x2 * x3 + x4) <> The data is not perfectly balanced between the different factor-combinations and I use treatment contrasts. <> With an aov.object, I assume I could have used mod...
2006 Jan 31
1
dialing 2 channels at thesametimewithdifferentcaller ID number?
> > Yes you must prefix a variabel with __ that's (2) _ underscores so that > it cross channels. > Aah, the magic formula - documented where? :) Thanks a million, have a great day. Damon
2006 Jan 31
1
dialing 2 channels atthesametimewithdifferentcaller ID number?
...s.digium.com] On Behalf Of Damon Estep > Sent: Tuesday, January 31, 2006 8:09 AM > To: Asterisk Users Mailing List - Non-Commercial Discussion > Subject: RE: [Asterisk-Users] dialing 2 channels > atthesametimewithdifferentcaller ID number? > > > > > Yes you must prefix a variabel with __ that's (2) _ underscores so > that > > it cross channels. > > > > Aah, the magic formula - documented where? :) > > Thanks a million, have a great day. > > Damon Man, if I could only learn to read... I "looked" at this page 5 times and nev...
2003 Mar 12
1
Windows 2000 Pro can't join the Samba PDC
...technique is more efficient because we dont have to add machine account every time a client want to join a domain. The value for add user scripts would be like this according to the doc book : /usr/sbin/useradd -g 100 -d /dev/null -s /bin/false -M %u When i try this i notice that %u, which is the variabel for user name account will just add the user account that i fill in win 2000 dialog box into my linux box and still the client can't join to domain. So i change the script with the variabel %m which is netbios name/machine name of the client, and i also add some command that used in 'manu...
2011 Mar 31
1
Cluster analysis, factor variables, large data set
Dear R helpers, I have a large data set with 36 variables and about 50.000 cases. The variabels represent labour market status during 36 months, there are 8 different variable values (e.g. Full-time Employment, Student,...) Only cases with at least one change in labour market status is included in the data set. To analyse sub sets of the data, I have used daisy in the cluster-package to cr...
2010 May 04
1
Extract rows with non-zero elements
...000 rows where the second column is positive, I would like to extract this 1000x13 matrix into another matrix. The beginning of my code is: Cars <- read.csv(filename, header=TRUE, row.names=NULL, sep=";") attach(Cars) n <- as.numeric(n) s <- as.numeric(s) # et cetera, the other variabeles are declared as numeric or as factors # I've tried to extract the data the following way: Cars2 <- Cars[Cars$s!=0] #However, then I get the error message: Error in `[.data.frame`(Cars, Cars$s != 0) : undefined columns selected # If I try s[s!=0] # I do get the positive s-values, but ho...
2008 Feb 19
3
simple usage of "for"
Hi list I have a data frame I would like to loop over. To begin with I would like crosstabulations using the first variabel in the data frame, which is called "meriter". > table(meriter[[1]], meriter[[3]]) ja nej Annan 0 2 1 Avdelningen f??r...
2012 Sep 18
1
Lowest AIC after stepAIC can be lowered by manual reduction of variables
...did something completely wrong... if this is the case: sorry... I try to get the best GLM model (with the lowest AIC) for my dataset. Therefore I run a stepAIC (in the "MASS" package) for my GLM allowing only two-variable-interactions. For the output (summary) I got a model with 7 (of 8) variabels and 5 interactions and AIC=40.008 BUT: When I take this model and reduce stepwise further variables manually (starting with the one with the highest p-values and first reducing all interactions of a variable before i reduce the variable itself) until i can't reduce more variables since all (or...
2009 Jan 05
1
can't get names of R_env
Hi, I'm quite knew in R, so I might not have the R specific jargon. But here is my problem, I'm trying to access and use variabels given by a function environment, more specifically the rho in do_optim in src/main/optim.c According to the documentation http://cran.r-project.org/doc/manuals/R-ints.html#The-_0027data_0027 the envsxp is defined as a tagged pairlist. "ENVSXP: Pointers to the frame, enclosing environment an...
2000 Sep 20
1
SV: sample from contingency table
I have had the same problem and I wrote this function rmulti <- function(n, size, p) { NrDim <- length(p) if(NrDim<2) stop("The simulated variabel has to be at least 2-dimensional") res <- matrix(data=NA, nrow=n, ncol=NrDim) p <- p/sum(p) TempSize <- size for(i in 1:NrDim) { TempP <- p[i]/sum(p[i:NrDim]) TempBin <- rbinom(n=n, size=TempSize, prob=TempP) TempSize <- TempSize-TempBin res[,i] <...
2018 May 26
1
Grouping by 3 variable and renaming groups
...eStore_Grps)), sep = "_") > > > Hope this helps, > > Rui Barradas > > On 5/26/2018 2:03 PM, Jeff Reichman wrote: >> ALCON >> >> >> I'm trying to figure out how to rename groups in a data frame after >> groups >> by selected variabels.? I am using the dplyr library to group my data >> by 3 >> variables as follows >> >> >> # group by lat (StoreX)/long (StoreY) >> >> priceStore <- LapTopSales[,c(4,5,15,16)] >> >> priceStore <- priceStore[complete.cases(priceStore), ]? #...
2012 Mar 07
1
SELECT CASE in RODBC
Hi all, I have a problem with a variable created by a SELECT CASE statement. See the code below. I would like the variable "event" to be a character variabel as I want to UNION my two SELECTs - and the "event"-variable is a character variable in the first SELECT result. I have tried different ways: * used ' ' in stead of " " around the string I want as the text in the variable * used ELSE "NA" in stead of ELSE NULL...
2009 Oct 22
1
Automatization of non-linear regression
...in a function such as para0.st <- c(alpha=2.212, ...), is it just stored locally, or can it be used globally, I mean, can I use the variable anywhere (for instance in curve()) or just in the function where it was created? I'm asking because I'm used to Java, where the life time of local variabels only extends to the closing braces, while global variables can be reached everywhere. The reason for automatization is that I'll have to repeat the procedure more than a hundred times, while making overview pair waise plots of my data, with both this logaritmic regression and several other...
2009 Jul 08
3
Suggestion: Dimension-sensitive attributes
Hi, I agree with Henrik that his suggestion to have "dimension vector attributes" working like dimnames (see below) would be an extremely useful infrastructure adittion to R. If this is not considered for R-core, I am happy to try to implement this in a package, as a new class. And possibly do the same thing for data frames. Should you have any comments, ideas or suggestions about it,
2023 Dec 18
3
Function with large nested list
...ssue necessarily, but i would still like to know why my code won't run. And whether there are any downsides or considerations for using many small functions. Below is my code. I have left part of it out. There are six more parts like the diabetes part that are similar. I also use a lot of data/variabeles not included here, to try and keep things compact. But I can provide additional information if helpful. Thanks it advance for thinking along!! Kind regards, Emily The code: decision_algorithm <- function(AB_list, dataset_ab = data.frame(), diagnose = 'cystitis', diabetes_status = &qu...