similar to: reordering combn(n,p)

Displaying 20 results from an estimated 1000 matches similar to: "reordering combn(n,p)"

2012 Nov 16
1
pairing data using combn with criteria
Dear All, I have a dataframe made up of individual beetles consisting of individual number, family number, mother's family number, father's family number, and sex of the beetle. I would like to pair up the individuals for breeding. I would, however, like to avoid breeding beetles of the same sex (obviously), the same family, and with the same mother's family or father's family,
2010 Apr 07
1
combn with factors
Dear list, I have come across this issue: combn(letters[1:5], 3) [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [1,] "a" "a" "a" "a" "a" "a" "b" "b" "b" "c" [2,] "b" "b" "b" "c" "c" "d" "c"
2011 Oct 16
1
multicore combn
This is a 'rather than re-invent the wheel' post. Has anyone out there re-written combn so that it can be parallelized - with multicore, snow, or otherwise? I have a job that requires large numbers of combinations, and rather than get all of the index values, then crank it through mclapply, I was wondering if there was a way to just do this natively within a function. Just curious.
2010 Mar 26
2
More efficient alternative to combn()?
Hi, i am working on a problem where i need to compute the products of all possible combinations of size m of the elements of a vector. I know that this can be achieved using the function combn(), e.g.: > vector <- 1:6 > combn(x = vector, m = 3, FUN = function(y) prod(y)) In my case the vector has 2000 elements and i need to compute the values specified above for m = 32. Using combn() i
2011 Jan 10
1
Using combn
Dear list, I want to apply the "table" function to every pair of variables in df and the return should be a list. setwd(123) asd <- data.frame(a1=sample(1:4, 20, replace=TRUE), a2=sample(1:4, 20, replace=TRUE), a3=sample(1:4, 20, replace=TRUE), a4=sample(1:4, 20, replace=TRUE)) with(asd, table(a1, a2)) with(asd, table(a1,
2013 Jan 24
2
Please help R error message "masked from 'package:utils':combn"
Hi The message occurred from R, when I was selected of "optimization > block diagonal Fhiser matrix" and used the attached file on PFIM. Could you please advise me about the following message? ***************************** Loading required pakage: combinat Attaching package:'combinat' The following object(s) are masked from 'package:utils':combn
2007 Jun 06
1
Metropolis-Hastings Markov Chain Monte Carlo in Spatstat
I'm testing some different formulations of pairwise interaction point processes in Spatstat (version 1.11-6) using R 2.5.0 on a Windows platform and I wish to simulate them using the Metropolis-Hastings algorithm implemented with Spatstat. Spatstat utilizes Fortran77 code with the preprocessor RatFor to do the Metropolis-Hastings MCMC, but the Makefile is more complicated than any I have
2006 May 09
1
combn(n, k, ...) and all its re-inventions
It seems people are reinventing the wheel here: The goal is to generate all combinations of 1:n of size k. This (typically) results in a matrix of size k * choose(n,k) i.e. needs O(n ^ k) space, hence is only applicable to relatively small k. Then alternatives have been devised to generate the combinations "one by one", and I think I remember there has been a quiz/challenge about 20
2007 Mar 27
2
Newbie: Combn and scripting
Hello All, I have just installed my R 2.4 (windows) as a test trying to load a data frame and run combn() for each line into another file. How do I do this? data.csv: a,b,c,d 1,2,3.4 g,3,6,t etc x=data.csv, m=3 Thank you Zam _________________________________________________________________________________ This email contains confidential information intended only for the person named
2009 Sep 21
2
Combine vectors in order to form matrixes with combn
Hello! I've a problem with the combn function and a set of vector. I would like to make a simple combination where, instead of scalars, i would like to combine vector, in order to form matrixes. In other words, i have nineteen 6-items vectors (for example coef1-coef19), that i would like to combine in n!/k!(n-k)! 6x6 matrixes. I tried with a code like this mma <-
2007 Jan 19
2
combn implementation
Hi, I was checking the source code to the function combn that "generates all combinations of the elements of 'x' taken 'm' at a time.", because I wished to modify it. I have a doubt about a statement. This is the main loop. ._1 <- 1:1 nmmp1 <- n - m + ._1 while (a[1] != nmmp1) { if (e < n - h) { h <- ._1 e <-
2008 Feb 08
2
Applying lm to data with combn
http://www.nabble.com/file/p15359204/test.data.csv http://www.nabble.com/file/p15359204/test.data.csv test.data.csv Hi, I have used apply to have certian combinations, but when I try to use these combinations I get the error [Error in eval(expr, envir, enclos) : object "X.GDAXI" not found]. being a novice I donot understand that after applying combination to the data I cant access
2001 Sep 14
1
Dynamic loading problem.
I'm having a dynamic loading problem that seems to be caused by exponentiation (the ** operator in Fortran/ratfor). This can be illustrated by the following toy example: ===+===+===+===+===+===+===+===+===+===+===+===+===+===+===+===+===+===+=== % cat foo.r subroutine foo(x,n) x = x**n return end % f77 -c foo.r /tmp/ratfor.06661.0.f: foo: % R CMD SHLIB -o foo.so foo.o gcc -G -o
2015 Mar 18
2
[LLVMdev] Implementing if-conversion as a GSoC 2015 project?
OK, Let me describe. There is nothing wrong with if-conversion in LLVM. The algorithm implemented in LLVM can handle the if(???){do something} and if(???){do something}else{do something else} case very well. But it can handle complicated case like when there are a lot of gotos in the program. The more systematic way to do if-conversion is based on Hyperblock [Scott A. Mahlke et al 1992]
2005 Apr 15
2
inconsistent fonts generated in postscript file (PR#7795)
Full_Name: Xiang Li Version: 2.01 OS: WinXP Submission from: (NULL) (128.248.174.125) I am trying to use the font of "TT Courier New: bold" to get the equal size of letters. The "TT Courier New: bold" is the 11th font listed in the Rdevga file. You can just try a simple case: plot(1:10, 1:10, xlab = "XILMV", font.lab = 11) I save the plot in postscript format,
2018 Aug 29
3
LLVM on IRIX
Greetings LLVM Developers, My name is Kazuo, I’m the head of the largest Silicon Graphics IRIX community on the internet. I’m approaching this mailing list to see if any MIPS developers who hang out here are interested in developing the LLVM/Clang Compiler system for IRIX. There’s a growing need as GCC removed support for us from 4.8, over six years ago and since then we’ve absolutely languished
1999 Jan 12
0
installation problem on R-0.63.2
I'm trying to install version 0.63.2 on an SGI Origin 200 with plenty of memory, running Irix 6.5. I previously installed 0.63.0 on this same system without incident. I'm getting the following error when I run ./configure: creating cache ./config.cache checking for a BSD compatible install... /usr/local/bin/ginstall -c checking whether ln -s works... yes checking for ranlib... ranlib
2006 Aug 30
0
[patch] phys_to_machine_mapping alignment on x86_64
Hi, At x86_64 linux domain, phys_to_machine_mapping, pfn_to_mfn_frame_list_list, and pfn_to_mfn_frame_list should be aligned to pagesize, but it can be misaligned now. If they aren''t aligned to pagesize, it will cause fails while saving the domain. This patch fixed it. regards, Signed-off-by: Kazuo Moriwaka <moriwaka@valinux.co.jp> set phys_to_machine_mapping alignment to
2010 May 17
0
(no subject)
Dear Limin, might be just about anything. Could you please provide a reproducible example? Best, Giovanni ----------------- Original message ---------------------- Message: 51 Date: Mon, 17 May 2010 10:36:03 +0800 (CST) From: ??? <dlmsos at 163.com> To: r-help at r-project.org Subject: [R] pgmm function Message-ID: <b2cba0.35fc.128a41e3684.Coremail.dlmsos at 163.com> Content-Type:
1998 Aug 18
1
Problem in "configure" for Solaris (cc) ?!
[[0.62.3, already 0.62.2]] This bug report is overdue, but I really didn't test these things for weeks (have always used gcc, but only yesterday, someone told me that he saw a speed gain of a factor 2 when using Sun's cc over gcc) I just found that the same problem is already in 0.62.2 If I take yesterday's R-release.tar.gz (or also R-0.62.2.tar.gz) unpack and add CC=cc -----