similar to: Non repetitive permutations/combinations of elements

Displaying 20 results from an estimated 2000 matches similar to: "Non repetitive permutations/combinations of elements"

2010 Jan 18
2
permutations from vectors out of a matrix
Dear R-Users, I'm relativley new to R and have the following problem. I need all permutations of the vectors created by the collumns of a matrix. I will give a small example: p=3 n=2^p-1 #number of obtainable vectors mat=matrix(0,p,p) for(i in 1:p) { mat[i:1,i]=1/i } mat is now a
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,]
2015 Mar 22
2
Combinatoria
Hola Miguel, Sí se pueden obtener las variaciones con y sin repetición en R. Eso sí están un poco escondidas... Se pueden calcular de esta forma: #---------------------- > #Cargar el paquete gtools > library(gtools) > #Definir el conjunto sobre el que se hará el cálculo > x <- c('rojo', 'azul', 'verde') > #Utilizar la función "permutations()"
2015 Mar 21
4
Combinatoria
En relación con lo que comenta Carlos, por ejemplo para el caso de las Variaciones sin Repetición, puede ser instructivoenseñar como se construye como por ejemplo: VsinR <- function(m, n){ return (factorial(m)/factorial(m-n))} VsinR(9,3) ------------------------- Creo que con la función factorial que viene por defecto en R puedes construir siguiendo este modelo rápidadmentecasi cualquier
2007 Aug 14
1
File Exchange?
Hi, I've been using R for a number of years, and must say I really like it. This past summer, however, I started using MatLab for a course at school and found the file exchange it has ( http://www.mathworks.com/matlabcentral/fileexchange/loadCategory.do) to be extremely useful. I know that R has packages that people share, and that there's also RForge for more advanced tools... But is
2011 Aug 15
2
temporal disaggregation
Dear R-users, I have an anual info of gross product and I would like to disaggregate to trimestral data. Can I import a matlab library of Quilis? ( http://www.mathworks.com/matlabcentral/fileexchange/24438-temporal-disaggregation-library ) Thanks, Sebasti?n.
2010 Jul 05
2
r code exchange site?
Does there exist a site where snippets of r code examples can be deposited, such as the one that exists for matlab? http://www.mathworks.com/matlabcentral/fileexchange/ ps I also noted from the main r site http://www.r-project.org/ when you click on the nabble link under the search link, I end up here http://e-nvf.vvvay.net/-td13672.html#a13819 which I don't think is anything to do with
2008 Apr 06
3
Multiset Permutations
Dear R users, I want to perform an exact permutation of multisets. I have looked at the coin package, but it doesn't seem to offer what I am looking for. I want to perform permutations (exact - without duplications) on multisets of scalars (e.g., the multiset 0,0,1,2,2). I want to output all the possible permutations into a data frame so that each multiset permutation occupies a row (or
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
2015 Mar 22
2
Combinatoria
Sí, también... Para las permutaciones, n=r. Y con el parámetro "repeats.allowed" controlas si son con o sin repetción: #---------------------- > #Permutaciones *con repetición* > permutations(n=3, r=3, v=x, repeats.allowed=TRUE) [,1] [,2] [,3] [1,] "azul" "azul" "azul" [2,] "azul" "azul" "rojo" [3,]
2004 Jan 20
1
evaluation of discriminant functions+multivariate homosce dasticity
While I don't know anything about Box's M test, I googled around and found a Matlab M-file that computes it. Below is my straight-forward translation of the code, without knowing Matlab or the formula (and done in a few minutes). I hope this demonstrates one of Prof. Ripley's point: If you really want to shoot yourself in the foot, you can probably program R to do that for you. [BTW:
2011 Jan 10
1
Cosinor en R
Hola a todos, es la primera vez que escribo a la lista, espero explicarme correctamente. Trabajo en cronobiología de mamíferos y quiero comenzar a analizar mis datos con R (haciendo análisis de varianza ya llevo unos años en el entorno). Me interesa saber si cada una de mis variables podría ajustarse a una función sinusoidal; tengo medidas cada dos horas para cada una. Querría extraer el mesor y
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
2009 Oct 10
1
permutations
Question 1. I would calculate all the permutations of numbers (23,46,70,71,89) How can I write correctly the code? (Load gregmisc) > permutations (..?...) ______________________ Question 2. It's possible permute a string? ..for example: EIGER EGIER EREGI etc..etc.. Thanks, E. -- View this message in context: http://www.nabble.com/permutations-tp25834463p25834463.html Sent from the R
2006 Aug 02
2
listing of permutations
Dear R People: Suppose I have the 4 numbers: 1,2,3,4. I would like to create a listing of the permutations of 4 items taken 4 at a time. Is there a built in function for that, please? Thanks in advance! R 2-3-1 for Windows or Linux Sincerely, Erin Hodgess Associate Professor Department of Computer and Mathematical Sciences University of Houston - Downtown mailto: hodgess at gator.uhd.edu
2011 Aug 15
3
desagregación temporal
Estimados usuarios de R: Tengo que hacer una desagregación temporal de una serie anual del producto interno bruto en trimestral. ¿Hay alguna forma de utilizar la librería en matlab de Quilis de desagregación temporal en R? La libreria se puede bajar de http://www.mathworks.com/matlabcentral/fileexchange/24438-temporal-disaggregation-library Saludos, Sebastián.
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
2009 Aug 10
1
R to MATLAB translation
Hi, Is there any package out there that might help me with translating R code into MATLAB? Using RSiteSearch I found a bunch of "MATLAB stuff" but it all seems to go in the opposite direction, i.e., emulating MATLAB functions in R. Thanks in advance, Andy __________________________________ Andy Jaworski 518-1-01 Process Laboratory 3M Corporate Research Laboratory ----- E-mail:
2010 Jan 07
1
adding 3D arrows to 3D plots
Greetings, I would like to add 3D arrows (i.e. arrow-headed vectors linking X1Y1Z1 to X2,Y2,Z2) to a 3D plot; ideally the sort of plot that can be rotated interactively. Is this possible using plot3d, or another 3d plotter in R? While it is easy to draw segments in plot3d (e.g. below), I haven't figured out how to add arrow heads, or to create 3d arrows from scratch. ##two headless
2009 Feb 18
1
alpha shape function
Hi all, I want to approximate te shape of an area defined by a set of points. The convex hull is not good enough, but I think that an alpha shape would be fine. I did an RSiteSearch(), google search, RSeek.org search, looked at the CRAN Views, but was unable do find a function in R that computes the alpha shape. Does anyone know if there is such a function in R? Theank you very much. Moacir