search for: combinat

Displaying 20 results from an estimated 95 matches for "combinat".

2005 Apr 04
1
Handling very large integers with factorial and combinat (nCm)
Dear list, perhpas this question is more suitable for R-dev but since I am not really a developer I post it here first. Apparently the following lines do not create any problem in R: library(combinat) r <- 20; b <- 2; sum( sapply(0:r,function(x) nCm(r,x)^(2*b)) ) > 2^64 while in C I obtain an overflow of data even using unsigned long long and with long double I incurr in precision problems. Where can I find information about how R (or the combinat package) handles very large integer...
2003 May 22
3
How to avoid function masking
Hi All, I've been working on updating the 'genetics' package. As a consequence of the upgrade, .First.lib() looks like: .First.lib <- function(libname, pkgname) { if (!require(combinat)) warning("Unable to load 'combinat' library. Function `diseq.ci' will fail.") require(gregmisc) genotype <- get("genotype",pos="package:genetics") } the First.lib of the "gregmisc" package in turn does require("MA...
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 ***************************** Kind regards, Fumie
2013 Sep 06
1
Importing function that is previously imported by other package
Dear developeRs, I encounter the following problem: in the current version of my package FrF2, certain calls to a functioni do not work when package combinat is loaded, because function combn from combinat masks the function from utils that my package uses. I tried to solve this issue by importing function combn into the namespace of FrF2; I don't need to export it, I just want to use it internally in the package; I could of course find all occu...
2006 Aug 18
1
Permutations with replacement
Is there a simple function or process that will create a matrix of permutations with replacement? I know that using the combinat package ###### begin R code ###### > library(combinat) > m <- t(array(unlist(permn(3)), dim = c(3, 6))) # we can get the permutations, for example 3!=6 # gives us > m [,1] [,2] [,3] [1,] 1 2 3 [2,] 1 3 2 [3,] 3 1 2 [4,] 3 2 1 [5,] 2 3...
2017 Nov 01
0
"prob" package alternative
...er, that broke my > RStudio (WSOD) and the dependent packages still wouldn't install, anyway. The latest version of pkg-prob at the Archive directory of CRAN indicates that it was last updated within this year. The DESCRIPTION file indicates that it does not need compilation, but: Depends: combinat, fAsianOptions So there should be code in text files in its ../R directory which can be sourced from that directory. ~myuser_name$ ls /Users/../Downloads/prob/R characteristicfunctions.r simulation.r utils-spaces.r genData.R spaces-examples.r utils-subsets.r misc.r spaces-prob.r prob.r...
2012 Aug 17
0
install.packages umask configuration
...Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > Sys.umask() [1] "22" > Sys.umask("2") > Sys.umask() [1] "2" > install.packages("combinat") Installing package(s) into ?/usr/lib/R/site-library? (as ?lib? is unspecified) --- Please select a CRAN mirror for use in this session --- CRAN mirror 1: Argentina (La Plata) 2: Argentina (Mendoza) 3: Australia (Canberra) 4: Australia (Melbourne) 5: Austria 6:...
2017 Nov 01
2
"prob" package alternative
The prob package has been archived because it depends upon some other packages which have issues. However, such projects as Introduction to Probability and Statistics in R depend upon it for learning. There are a few other resources that also use it. Does anyone know of any workarounds? Someone at stack exchange mentioned using R 2.9. However, that broke my RStudio (WSOD) and the dependent
2017 Nov 02
2
"prob" package alternative
...io (WSOD) and the dependent packages still wouldn't install, anyway. > > The latest version of pkg-prob at the Archive directory of CRAN indicates > that it was last updated within this year. The DESCRIPTION file indicates > that it does not need compilation, but: > > Depends: combinat, fAsianOptions > > So there should be code in text files in its ../R directory which can be > sourced from that directory. > > ~myuser_name$ ls /Users/../Downloads/prob/R > characteristicfunctions.r simulation.r > utils-spaces.r > genData.R spaces...
2005 May 04
2
loading gap package
...I did install R. 2.0.1, and try to load "gap" package. However, below is the message shown when I did load it. Can anybody please let me know my mistakes? ---- > library() > library(gap) Loading required package: MASS Loading required package: genetics Loading required package: combinat Loading required package: gdata Error: package 'gdata' could not be loaded In addition: Warning message: There is no package called 'gdata' in: library(pkg, character.only = TRUE, logical = TRUE, lib.loc = lib.loc) ---- Thanks, Edwin
2006 May 08
3
Non repetitive permutations/combinations of elements
...y used the function combn([0 1],3) that I found at the following link http://www.mathworks.com/matlabcentral/fileexchange/loadFile.do?objectId=7147&objectType=FILE written by Jos van der Geest in Matlab which generated the above. How can I do this is R? I have looked at permn and combn in the combinat library and permutations and combinations in the gtools library and I am still confused as to how to get it to work. Any suggestions will be truly appreciated. Thank you Nameeta ------------------------------------------------- This email is intended only for the use of the individual or...{{...
2005 Aug 17
2
Copying rows from a matrix using a vector of indices
Hi, I am trying to use a vector of indices to select some rows from a matrix. But before I can do that I somehow need to convert 'combinations' into a list, since 'mode(combinations)' says it's 'numerical'. Any idea how I can do that? library("combinat") combinations <- t(combn(8,2)) indices <- c(sample(1:length(combinations),10)) # convert ??? subset <- combinations[indices] Thanks in...
2010 Feb 20
1
Problem with installing "genetics" package
...lp in this matter will be greatly appreciated. Murray M Cooper, PhD Richland Statistics 9800 North 24th St Richland, MI, USA 49083 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Log from attempted install: > utils:::menuInstallPkgs() also installing the dependencies ?combinat?, ?gdata?, ?gtools?, ?mvtnorm? trying URL 'http://cran.mtu.edu/bin/windows/contrib/2.10/combinat_0.0-7.zip' Content type 'application/zip' length 25623 bytes (25 Kb) opened URL downloaded 25 Kb trying URL 'http://cran.mtu.edu/bin/windows/contrib/2.10/gdata_2.7.1.zip' Conte...
2017 Nov 02
2
"prob" package alternative
...nt packages still wouldn't install, > anyway. > > > > The latest version of pkg-prob at the Archive directory of CRAN > indicates that it was last updated within this year. The DESCRIPTION file > indicates that it does not need compilation, but: > > > > Depends: combinat, fAsianOptions > > > > So there should be code in text files in its ../R directory which can be > sourced from that directory. > > > > ~myuser_name$ ls /Users/../Downloads/prob/R > > characteristicfunctions.r simulation.r > utils-spaces.r > > genData....
2006 Aug 21
0
Fw: Permutations with replacement
...8/21/2006 09:36 AM To "Daniel Nordlund" <res90sx5 at verizon.net> cc Subject RE: [R] Permutations with replacement Thanks, Daniel. I need to enumerate all possibilities of 8^8 and take a random sample of 10,000 from there. Then I will use the sampled possibilities to do a combination of data frames/files then do some math on those files and develop the probability distribution from resulting sampling statistics (I couldn't get the available bootstrap packages to do what I want). BTW, the preferred solution (however inelegant) is reprinted below. I did have a memor...
2017 Nov 02
0
"prob" package alternative
...t; RStudio (WSOD) and the dependent packages still wouldn't install, anyway. > > The latest version of pkg-prob at the Archive directory of CRAN indicates that it was last updated within this year. The DESCRIPTION file indicates that it does not need compilation, but: > > Depends: combinat, fAsianOptions > > So there should be code in text files in its ../R directory which can be sourced from that directory. > > ~myuser_name$ ls /Users/../Downloads/prob/R > characteristicfunctions.r simulation.r utils-spaces.r > genData.R...
2004 Sep 08
2
How to do this "combination" ?
Thanks David first. Probably, David misunderstood my points. source vector = (1,2) the length of the target vector = 3 My expected "complete" outputs should be: 111, 112, 121, 122, 211, 212, 221, 222. sample(c(1,2),3,replace=TRUE) just gives me one "randomly sampled" combination at a time. However, I need the whole list displayed above at a time. Rui
2012 Sep 25
1
Add-on Package
I have downloaded a package 'combniat' , it now exists in the library. I even loaded it using: library(combinat). But when I call the function tosscoin(1), I instead get an error message: Error: could not find function "tosscoin". Kindly help. Kizito.
2017 Nov 02
2
"prob" package alternative
...uldn't install, > anyway. > > > > > > The latest version of pkg-prob at the Archive directory of CRAN > indicates that it was last updated within this year. The DESCRIPTION file > indicates that it does not need compilation, but: > > > > > > Depends: combinat, fAsianOptions > > > > > > So there should be code in text files in its ../R directory which can > be sourced from that directory. > > > > > > ~myuser_name$ ls /Users/../Downloads/prob/R > > > characteristicfunctions.r simulation.r > utils-sp...
2017 Nov 02
0
"prob" package alternative
...and the dependent packages still wouldn't install, anyway. > > > > The latest version of pkg-prob at the Archive directory of CRAN indicates that it was last updated within this year. The DESCRIPTION file indicates that it does not need compilation, but: > > > > Depends: combinat, fAsianOptions > > > > So there should be code in text files in its ../R directory which can be sourced from that directory. > > > > ~myuser_name$ ls /Users/../Downloads/prob/R > > characteristicfunctions.r simulation.r utils-spaces.r > >...