search for: numvars

Displaying 20 results from an estimated 20 matches for "numvars".

Did you mean: num_vars
2009 Jan 24
2
how to prevent duplications of data within a loop
...del=FALSE, but this did not seem to do the job. Any ideas? Thanks for your time. Regards, Juliet # create data set.seed(1) response <- rnorm(50) var1 <- rnorm(50) var2 <- rnorm(50) var3 <- rnorm(50) myData <- data.frame(response,var1,var2,var3) var.names <- names(myData)[2:4] numVars <- length(var.names) betas <- rep(-1,numVars) names(betas) <- var.names #run regression on var1 through var3. for (Var_num in 1:numVars) { col.name <- var.names[Var_num] mylm <- lm(response ~ get(col.name),data=myData,model=FALSE) betas[Var_num] <- coef(mylm)[2] }
2012 Jun 14
3
mapa provincial de España con googleVis
Se ha borrado un adjunto en formato HTML... URL: <https://stat.ethz.ch/pipermail/r-help-es/attachments/20120614/518ed68f/attachment.html>
2009 Jan 22
0
detecting the source of memory consumption (example provided)
...e. Regards, Juliet #begin example response <- rnorm(50); x1 <- sample(c(1,2),50,replace=TRUE) age <- sample(seq(20,80),50,replace=TRUE) id <- rep(1:25,each=2) var1 <- rnorm(50); var2 <- rnorm(50); var3 <- rnorm(50); myData <- data.frame(response,x1,age,id,var1,var2,var3) numVars <- ncol(myData)-4; pvalues <- rep(-1,numVars); names(pvalues) <- colnames(myData)[5:ncol(myData)]; library(yags) for (Var_num in 1:numVars) { fit.yags <- yags(myData$response ~ myData$age+myData$x1*myData[,(Var_num+4)], id=myData$id, family=gaussian,corstr="exchangeable",a...
2011 Aug 10
2
round() a data frame containing 'character' variables?
Dear all It is difficult to use round(..., digits=2) on a data frame since one has to first take care to remove non-numeric variables such as 'character' or 'factor': > head(round(iris, 2)) Error in Math.data.frame(list(Sepal.Length = c(5.1, 4.9, 4.7, 4.6, 5, : non-numeric variable in data frame: Species > head(round(iris[1:4], 2)) Sepal.Length Sepal.Width Petal.Length
2011 Jun 07
1
error with geomap in googleVis
Hi All, I am unable to get the plot geomap in googleVis package. data is as follows > head(index.ret) country ytd 1 Argentina -10.18 2 Australia -3.42 3 Austria -2.70 4 Belgium 1.94 5 Brazil -7.16 6 Canada 0.56 > map1 = gvisGeoMap(index.ret,locationvar = 'country', numvar = 'ytd') > plot(map1) But it just displays a blank page, showing an
2003 May 06
2
Sum by categorical variable
Dear R-list, I have two variables (numerical and categorical) and would like to have the sum (and maybe some other statistics) of the numerical variable by the categorical one. Can you help me, Thank you, Fabrizio --------------------------------------------------------------- Fabrizio De Amicis IT Department Generali Information Technologies - (GIT) Centro Galleria 2, Via Cantonale CH -
2020 Jun 15
2
FileCheck: using numeric variable defined on same line with caveats
Any kind of variable definition on a CHECK-NOT line would seem like it would be asking for trouble. Do we allow text variable definitions on a NOT? False fails are better than false matches. Given that it will fail on a line where you'd expect a match, or possibly for the line to be skipped, it's a matter of refining the match expression, which is something that you have to do sometimes
2020 Jun 15
2
FileCheck: using numeric variable defined on same line with caveats
Before addressing the CHECK-NOT case, I’m still unclear about the DAG case. What should the first DAG line match? The regex matching would first attempt to match “10 12” but the expression evaluation would fail; so the DAG candidate wouldn’t match; does this mean the DAG matching does not continue searching, and the test fails? Or would we restart the search…. where? With “0 12” (skipping only
2019 Jan 25
0
[klibc:update-dash] expand: Fixed "$@" expansion when EXP_FULL is false
Commit-ID: 77604985dadef38bdaf251e3898a0b2ef33ea08e Gitweb: http://git.kernel.org/?p=libs/klibc/klibc.git;a=commit;h=77604985dadef38bdaf251e3898a0b2ef33ea08e Author: Herbert Xu <herbert at gondor.apana.org.au> AuthorDate: Thu, 1 Jan 2015 07:53:10 +1100 Committer: Ben Hutchings <ben at decadent.org.uk> CommitDate: Fri, 25 Jan 2019 02:57:21 +0000 [klibc] expand: Fixed
2019 Jan 25
0
[klibc:update-dash] expand: 'nolog' and 'debug' options cause "$-" to wreak havoc
Commit-ID: a311e6839f6e8e9797d0a0bd8e1222d22e10a018 Gitweb: http://git.kernel.org/?p=libs/klibc/klibc.git;a=commit;h=a311e6839f6e8e9797d0a0bd8e1222d22e10a018 Author: Martijn Dekker <martijn at inlv.org> AuthorDate: Tue, 6 Mar 2018 17:40:37 +0000 Committer: Ben Hutchings <ben at decadent.org.uk> CommitDate: Fri, 25 Jan 2019 02:57:21 +0000 [klibc] expand: 'nolog' and
2020 Mar 28
0
[klibc:update-dash] dash: expand: Fixed "$@" expansion when EXP_FULL is false
Commit-ID: 57da2c169d4f22009725f47645ca6a4501f2475f Gitweb: http://git.kernel.org/?p=libs/klibc/klibc.git;a=commit;h=57da2c169d4f22009725f47645ca6a4501f2475f Author: Herbert Xu <herbert at gondor.apana.org.au> AuthorDate: Thu, 1 Jan 2015 07:53:10 +1100 Committer: Ben Hutchings <ben at decadent.org.uk> CommitDate: Sat, 28 Mar 2020 21:42:54 +0000 [klibc] dash: expand: Fixed
2020 Mar 28
0
[klibc:update-dash] dash: expand: 'nolog' and 'debug' options cause "$-" to wreak havoc
Commit-ID: 8d7c846f252b7eabd7cb7d02e7b53fb5a835402e Gitweb: http://git.kernel.org/?p=libs/klibc/klibc.git;a=commit;h=8d7c846f252b7eabd7cb7d02e7b53fb5a835402e Author: Martijn Dekker <martijn at inlv.org> AuthorDate: Tue, 6 Mar 2018 17:40:37 +0000 Committer: Ben Hutchings <ben at decadent.org.uk> CommitDate: Sat, 28 Mar 2020 21:42:54 +0000 [klibc] dash: expand: 'nolog'
2017 Jun 24
0
Fwd: Widgets under renderUI Shiny
Hi All, I am not sure if this is a relevant platform to ask but I have tried other more related platforms and haven't had any luck so i thought i would try my luck here. Basically I want to generate a selectInput widget with a conditional under renderUI in Shiny. The number of widgets generated will depend on the number of variables a user selects. Try as I may I have not been able to get
2019 Jan 25
0
[klibc:update-dash] [EXPAND] Optimise nulonly away and just use quoted as before
Commit-ID: 6e3f1aff00a97256e185897ac25d4d5b9ed5a4a5 Gitweb: http://git.kernel.org/?p=libs/klibc/klibc.git;a=commit;h=6e3f1aff00a97256e185897ac25d4d5b9ed5a4a5 Author: Herbert Xu <herbert at gondor.apana.org.au> AuthorDate: Wed, 8 Oct 2014 20:09:56 +0800 Committer: Ben Hutchings <ben at decadent.org.uk> CommitDate: Fri, 25 Jan 2019 02:57:21 +0000 [klibc] [EXPAND] Optimise
2020 Mar 28
0
[klibc:update-dash] dash: [EXPAND] Optimise nulonly away and just use quoted as before
Commit-ID: f253b53e6b2b89b31085e7d1e50f0eb6edf891dd Gitweb: http://git.kernel.org/?p=libs/klibc/klibc.git;a=commit;h=f253b53e6b2b89b31085e7d1e50f0eb6edf891dd Author: Herbert Xu <herbert at gondor.apana.org.au> AuthorDate: Wed, 8 Oct 2014 20:09:56 +0800 Committer: Ben Hutchings <ben at decadent.org.uk> CommitDate: Sat, 28 Mar 2020 21:42:54 +0000 [klibc] dash: [EXPAND]
2019 Jan 25
0
[klibc:update-dash] [EXPAND] Split unquoted $@/$* correctly when IFS is set but empty
Commit-ID: af24ffa8f0b9d90e29d6daf77e5349dd3ffe4aec Gitweb: http://git.kernel.org/?p=libs/klibc/klibc.git;a=commit;h=af24ffa8f0b9d90e29d6daf77e5349dd3ffe4aec Author: Herbert Xu <herbert at gondor.apana.org.au> AuthorDate: Wed, 8 Oct 2014 15:24:23 +0800 Committer: Ben Hutchings <ben at decadent.org.uk> CommitDate: Fri, 25 Jan 2019 02:57:21 +0000 [klibc] [EXPAND] Split
2020 Mar 28
0
[klibc:update-dash] dash: [EXPAND] Split unquoted $@/$* correctly when IFS is set but empty
Commit-ID: 4dc603d0fe5a997d8bbd5048b229d655e6549ced Gitweb: http://git.kernel.org/?p=libs/klibc/klibc.git;a=commit;h=4dc603d0fe5a997d8bbd5048b229d655e6549ced Author: Herbert Xu <herbert at gondor.apana.org.au> AuthorDate: Wed, 8 Oct 2014 15:24:23 +0800 Committer: Ben Hutchings <ben at decadent.org.uk> CommitDate: Sat, 28 Mar 2020 21:42:54 +0000 [klibc] dash: [EXPAND] Split
2020 Mar 28
0
[klibc:update-dash] dash: expand: Ensure result is escaped in cvtnum
Commit-ID: f74d60ab87269a10d5efadff1887a260783017dd Gitweb: http://git.kernel.org/?p=libs/klibc/klibc.git;a=commit;h=f74d60ab87269a10d5efadff1887a260783017dd Author: Herbert Xu <herbert at gondor.apana.org.au> AuthorDate: Fri, 1 Jun 2018 18:25:29 +0800 Committer: Ben Hutchings <ben at decadent.org.uk> CommitDate: Sat, 28 Mar 2020 21:42:55 +0000 [klibc] dash: expand: Ensure
2019 Jan 25
0
[klibc:update-dash] expand: Fix ghost fields with unquoted $@/$*
Commit-ID: c36feecd03749ebe7eccb7556c5fc5d38bd88dfd Gitweb: http://git.kernel.org/?p=libs/klibc/klibc.git;a=commit;h=c36feecd03749ebe7eccb7556c5fc5d38bd88dfd Author: Herbert Xu <herbert at gondor.apana.org.au> AuthorDate: Fri, 23 Mar 2018 18:58:47 +0800 Committer: Ben Hutchings <ben at decadent.org.uk> CommitDate: Fri, 25 Jan 2019 02:57:21 +0000 [klibc] expand: Fix ghost
2020 Mar 28
0
[klibc:update-dash] dash: expand: Fix ghost fields with unquoted $@/$*
Commit-ID: 887c4118916c8ee1aff8cdefbb691bd835c6566e Gitweb: http://git.kernel.org/?p=libs/klibc/klibc.git;a=commit;h=887c4118916c8ee1aff8cdefbb691bd835c6566e Author: Herbert Xu <herbert at gondor.apana.org.au> AuthorDate: Fri, 23 Mar 2018 18:58:47 +0800 Committer: Ben Hutchings <ben at decadent.org.uk> CommitDate: Sat, 28 Mar 2020 21:42:54 +0000 [klibc] dash: expand: Fix