similar to: Working with combinations

Displaying 20 results from an estimated 10000 matches similar to: "Working with combinations"

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
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
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
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
2005 May 17
4
Combinations with two part column
Dear R-helpers, I am a beginner using R. This is the first question in this list. My question, Is there possible to make combinations with two part column? If I have a number 1,2,3,4,5,6,7,8. I need the result something like below: 1,2,3,4,5 6,7,8 1,2,3,4,7 5,6,8 2,3,4,5,6 1,7,8 1,2,3,6,7 4,5,8 1,2,3,4,8 5,6,7 3,4,6,7,8 1,2,5 .... I would be very happy if anyone could
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
2007 Apr 18
2
Error loading libraries in MAC
Hi I just installed the gmodels package and the installation was successful but when I was trying to load the library I got an error (see below). Interesting, yesterday I wrote to the maintainer of RSQLite apckage because I got the same error. Does somebody knows what is going on ?? thanks, Mayte library(gmodels) Error in dyn.load(x, as.logical(local), as.logical(now)) : unable to load
2007 Apr 18
2
Error loading libraries in MAC
Hi I just installed the gmodels package and the installation was successful but when I was trying to load the library I got an error (see below). Interesting, yesterday I wrote to the maintainer of RSQLite apckage because I got the same error. Does somebody knows what is going on ?? thanks, Mayte library(gmodels) Error in dyn.load(x, as.logical(local), as.logical(now)) : unable to load
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
2008 Sep 05
1
Trouble with R CMD check: I can't seem to get dependencies right (maybe I'm using R_LIBS incorrectly?)
Hi there, I'm in the following directory: ~/Documents/Rstuff/diceFiles/dice_1.1 The directory "dice" is in this directory, with all the usual build files (DESCRIPTION, NAMESPACE, etc). I'm trying to run the following command: R CMD check dice (where "dice" is the name of the package I'm checking), and I get the following: * checking package dependencies ...
2010 Apr 27
1
Problem installing gtools package
Hello, I am attempting to install the gtools package, so that I can compute the permutations of a set. However, I having difficulties. My problems are: 1) When I use the GUI "Install package(s)" command, the package "gtools" does not appear in my list. 2) I dowloaded the package from http://cran.r-project.org/web/packages/gtools/ . I Then used the GUI command
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
2010 May 17
1
Running gplots package with Windows 7
Hello, I'm fairly new to R and am running version 2.11.0 with Windows 7. I need to run the package gplots. The package installs fine, but when I try to load it I receive the message: Loading required package: gtools Error: package 'gtools' could not be loaded In addition: Warning message: In library(pkg, character.only = TRUE, logical.return = TRUE, lib.loc = lib.loc) : there
2007 Feb 20
4
linux gplots install unhappy
Hello all, I use R on both windows and a "mainframe" linux installation (RedHat enterprise 3.0, which they tell me is soon to be upgraded to 4.0). On windows I installed the package gplots without trouble, and it works fine. When I attempted to do the same on the unix computer, the following error message was forthcoming: downloaded 216Kb * Installing *source* package
2004 Sep 17
1
R-2.0.0 Install problem for package bundle with inter-dependent n amespaces
I have a revised version of the gregmisc package, which I've converted into a package bundle each of which has a namespace: gplots, gmodels, gdata, gtoools. Of course, there are interdependencies among these namespaces: gsun374: /tmp [11]> cd gregmisc/ gsun374: gregmisc [12]> grep import */NAMESPACE gdata/NAMESPACE:importFrom(gtools, odd, invalid, mixedsort)
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) #
2011 Jan 07
1
Trouble compiling R-2.10.0
Hi, I am having trouble compiling R-2.10.0 on the Solaris x86_64 platform using the native solaris-studio cc/F99 compilers. I am pretty sure that I have all my environment set up for a 64-bit compile. However, when doing a make I get the following error: /opt/solstudio12.2/bin/cc -m64 -I./api -I. -I../../../src/include -I../../../src/include -I/usr/local/include -DHAVE_CONFIG_H -KPIC -xO3 -c
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 ) )