similar to: Problem installing gtools package

Displaying 20 results from an estimated 10000 matches similar to: "Problem installing gtools package"

2005 Feb 14
3
'combinations' in gtools and stack overflow
Dear R-users, Let me ask about the 'stack overflow' error which I got when I used the function 'combinations' in "gtools". The following is what I did: --------- library(gtools) options(expressions=1e5) combinations(500, 3, 1:500) # or combinations(400, 2, 1:400) Error: protect(): stack overflow --------- How can I overcome this error? Is there perhaps any other
2012 Feb 28
2
Error: could not find function "hier.part"
Error: could not find function "hier.part" things I have tried: 1. reinstall R (lastest version, on windows XP) 2. install package "gtools" 3. include: library(gtools) require(gtools) 4. how I call this function: hier.part(c$Y, xdata, fam = "gaussian", gof = "Rsqu") 5.when I try to check what's in the package "gtools", I get (hier.part is
2009 Sep 06
1
Two packages and one method
Hi! I want to use one method "combinations" from "gtools" package but in my code I must use also "dprep" method where is method "combinations" too. Mayby I show you result my help function: Help on topic 'combinations' was found in the following packages: Package Library dprep /usr/lib64/R/library gtools
2009 Dec 18
2
Generating permutations that always include one specific element
Dear R community, I am trying to create a matrix of permutations of a vector: bands <- c("AL", "B", "DB", "DG", "G", "K", "LB", "LG", "MG", "O", "P", "PI", "PK", "PU", "R", "V", "W", "Y") Each permutation must be 4
2007 May 30
5
Possible changes to connections
When I originally implemented connections in R 1.2.0, I followed the model in the 'Green Book' closely. There were a number of features that forced a particular implementation, and one was getConnection() that allows one to recreate a connection object from a number. I am wondering if anyone makes use of this, and if so for what? It would seem closer to the R philosophy to have
2018 Mar 30
2
getting all circular arrangements without accounting for order
Jeff, I wanted to let you know that your function is faster than generating the directional circular permutations and weeding. Here is the time for n = 10. I compared with just doing the permutations, there is no point in proceeding further with the weeding since it is slower at the start itself. system.time(directionless_circular_permutations(10)) user system elapsed 1.576 0.000
2018 Mar 30
0
getting all circular arrangements without accounting for order
I don't know if this is more efficient than enumerating with distinct directions and weeding... it seems kind of heavyweight to me: ####### library(gtools) directionless_circular_permutations <- function( n ) { v <- seq.int( n-1 ) ix <- combinations( n-1, 2 ) jx <- permutations( n-3, n-3 ) x <- lapply( seq.int( nrow( ix ) ) , function( i ) {
2006 May 08
3
Non repetitive permutations/combinations of elements
Hello all, I am trying to create a matrix of 1s and -1s without any repetitions for a specified number of columns. e.g. 1s and -1s for 3 columns can be done uniquely in 2^3 ways. -1 -1 -1 -1 -1 1 -1 1 -1 -1 1 1 1 -1 -1 1 -1 1 1 1 -1 1 1 1 and for 4 columns in 2^4 ways and so on. I finally used the function combn([0 1],3) that I found at the following link
2018 Mar 30
0
getting all circular arrangements without accounting for order
New function below is a bit faster due to more efficent memory handling. for-loop FTW! directionless_circular_permutations2 <- function( n ) { n1 <- n - 1L v <- seq.int( n1 ) ix <- combinations( n1, 2L ) jx <- permutations( n-3L, n-3L ) jxrows <- nrow( jx ) jxoffsets <- seq.int( jxrows ) result <- matrix( n, nrow = factorial( n1 )/2L, ncol = n ) k
2009 Sep 03
1
trouble installing gtools package in local directory
Hello, I've recently transitioned to using R in Linux. My OS/installation versions are: $ Red Hat Enterprise Linux AS release 4 (Nahant Update 6) $ Linux lx-chgmqsd05 2.6.9-67.0.1.ELsmp #1 SMP Fri Nov 30 11:57:43 EST 2007 x86_64 x86_64 x86_64 GNU/Linux I am trying to create a repository of packages under ~/R/library which I've created since I do not have admin access on my system. From my
2009 Sep 03
1
trouble installing gtools package in local directory
Hello, I've recently transitioned to using R in Linux. My OS/installation versions are: $ Red Hat Enterprise Linux AS release 4 (Nahant Update 6) $ Linux lx-chgmqsd05 2.6.9-67.0.1.ELsmp #1 SMP Fri Nov 30 11:57:43 EST 2007 x86_64 x86_64 x86_64 GNU/Linux I am trying to create a repository of packages under ~/R/library which I've created since I do not have admin access on my system. From my
2010 Apr 22
1
packages gdata / gtools - installation in R 2.11.0
Dear R-list members, I have just downloaded R version 2.11.0. Then I installed package gdata. At the end of the installation, a warning message said that package gtools could not be found. Package gdata was, after the installation, included in the "Package Index" in the help files. Messages during installation (which was made through the menu Packages / Instal package(s), choosing the
2015 Mar 22
2
Combinatoria
Ya me extrañaba a mi! Mañana a primera hora miro todo lo que me comentas. Ahora estoy con ecuaciones no lineales y ya veo que hay que cargar librerias Muchas gracias. Un saludo El 23 de marzo de 2015, 0:08, Carlos Ortega <cof en qualityexcellence.es> escribió: > Hola, > > Por precisar un par de detalles: > > > - Con el paquete gtools se pueden generar: > - las
2008 Oct 15
1
error installing gtools (PR#13168)
Full_Name: Ebi Hal Version: R-2.7.2-1 OS: Fedora core 9 Submission from: (NULL) (129.215.170.238) I tried to install gplots by running R> install.packages("gplots") but the process failed while installing "gtools" with the following error message: * Installing to library '/usr/lib64/R/library' * Installing *source* package 'gtools' ... ** libs gcc -m64
2015 Mar 23
2
Combinatoria
Hola Jorge, gracias por ayudarme antes de empezar. Ayer me fui a cama con tan solo escribir el título "Ecuaciones no lineales" Básicamente lo que voy a buscar es lo clásico, es decir, resolver cualquier ecuación no lineal, ya sea polinómica o trascendente, con una o varias incógnitas. Ejemplo típico: x^2 + y^2 = 1 y = sin x Si me van surgiendo dudas, aquí estaré, no lo dudéis. Por
2006 Oct 21
2
problem with mode of marginal distriubtion of rdirichlet{gtools}
Hi all, I have a problem using rdirichlet{gtools}. For Dir( a1, a2, ..., a_n), its mode can be found at $( a_i -1)/ ( \sum_{i}a_i - n)$; The means are $a_i / (\sum_{i} a_i ) $; I tried to study the above properties using rdirichlet from gtools. The code are: ############## library(gtools) alpha = c(1,3,9) #totoal=13 mean.expect = c(1/13, 3/13, 9/13) mode.expect = c(0, 2/10, 8/10) #
2010 Aug 18
2
combinations
I would appreciate any suggestions on which function to use to write subsequent functions analysing combinations of treatments. This refers to experimental trials of medical treatments. I want to write routines to analyse various comparisons (combinations) So .... if 5 treatments are available (t01, t02, t03, t04 and t05) I want to write a general routine that works out all possible
2018 Mar 12
0
Equivalent of gtools::mixedsort in R base
split any mixed columns into letter and number columns and then order can be used on that: DF <- data.frame(x = c("a10", "a2", "a1")) o <- do.call("order", transform(DF, let = gsub("\\d", "", x), no = as.numeric(gsub("\\D", "", x)),
2015 Mar 22
3
Combinatoria
Hola amigos, muchas gracias por vuestra ayuda. Entonces veo que mi sorpresa era legítima. Por todos vuestros mails la conclusión es que: - En el módulo base de R no incluye combinatoria elemental, ni siquiera el número combinatorio Cm,n hay que cargar el paquete *combinat* - Y para las variaciones con repetición el paquete* gtools* - Y aún así no tenemos ni las combinaciones ni las
2018 Mar 12
1
Equivalent of gtools::mixedsort in R base
x <- c( "a1", "a10", "a2" ) y <- c( "b10", "b2", "a12", "ca1" ) DF <- expand.grid( x = x, y = y ) # randomize set.seed( 42 ) DF <- DF[ sample( nrow( DF ) ), ] # missing from gtools mixedrank <- function( x ) { seq.int( length( x ) )[ gtools::mixedorder(x) ] } o <- do.call( order, lapply( DF, mixedrank ) )