similar to: fill Matrix quicker

Displaying 20 results from an estimated 2000 matches similar to: "fill Matrix quicker"

2013 Oct 11
3
matrix values linked to vector index
Hi, In the example you showed: m1<- matrix(0,length(vec),max(vec)) 1*!upper.tri(m1) #or ?m1[!upper.tri(m1)] <-? rep(rep(1,length(vec)),vec) #But, in a case like below, perhaps: vec1<- c(3,4,5) ?m2<- matrix(0,length(vec1),max(vec1)) ?indx <- cbind(rep(seq_along(vec1),vec1),unlist(tapply(vec1,list(vec1),FUN=seq),use.names=FALSE)) m2[indx]<- 1 ?m2 #???? [,1] [,2] [,3] [,4] [,5]
2013 Jun 18
2
offset en bucle
Amigos de la erre. He creado mi primer bucle con for para entrenar unos modelos con GAM. La respuesta es quasipoisson porque estoy trabajando con densidades de peces. Sin embargo, tengo un problema, no se muy bien como añadir el offset a la formula siguiente cuando creo el bucle. GAM.A1 <-gam ((DYO)~s(DMA,k=4)+ s(WOD,k=4)+s(CIN,k=4)+s(DRA,k=4)+s(DBR,k=4)
2013 Apr 25
3
problems ensuring that a service is absent
Hi, I''m trying to be really, really sure that a specific service is not running. The central part of this looks like that: service { ''foo'': ensure => stopped, enable => false } -> package { ''foo'': ensure => purged } The astute reader will notice that on the second run puppet will complain that the init script for foo is
2013 Feb 28
2
Fortune?
I think the rule is that you can do anything as long as you don't complain. If you want to complain, you must follow the instructions. -- Jari Oksanen in Re: [Rd] Keeping up to date with R-devel -- Patrick Burns pburns at pburns.seanet.com twitter: @burnsstat @portfolioprobe http://www.portfolioprobe.com/blog http://www.burns-stat.com (home of: 'Impatient R' 'The R
2014 Sep 10
3
Manejo de imágenes con R
Hola, buen día. Una consulta, no sé conozco en extenso todas las bondades de R, pero quería saber exactamente si hay algún paquete que permita realizar análisis ecológicos específicamente para comunidades marinas. Existen muchos índices, indicadores, estimadores en general en muchos programas que están a nivel de usuario, pero quería saber si todos estos pueden estar ya disponibles en R.
2020 Jul 28
2
Superponer mapas en ggplot
Buenos días. Tengo dos mapas que hago con ggplot (abajo) y necesito superponer el 2º al 1º. En el 1º se representa la variable PA, binomial (0, 1), en gris, y en el 2º la variable ExtTG7085, que es numérica y va de 0 a 200. La 2ª es un gradiente en rojo. Lo ideal sería que donde coinciden el rojo de la 2ª se viera más oscuro, pero supongo que eso no es fácil. Podría también ser en otro color, pero
2011 Sep 12
3
Solve your R problems
R-help is all about solving R problems. So here ya go: http://www.portfolioprobe.com/2011/09/12/solve-your-r-problems/ -- Patrick Burns pburns at pburns.seanet.com twitter: @portfolioprobe http://www.portfolioprobe.com/blog http://www.burns-stat.com (home of 'Some hints for the R beginner' and 'The R Inferno')
2002 Oct 28
1
intermitent domain logon failures
I have an issue where at odd times, maybe after 3 days, maybe after a week, people suddenly cant do domain logons. Unfortunately the machine is 50km away so i'm sure theres more details I can glean once I can interogate the users a bit more. Things I have noticed: Anyone currently logged in can still work fine. A restart of samba fixes the issue (till it hapens next). ps ax shows smbd and
2018 Nov 14
2
Los puntos no tapen el mapa hecho ggplot
Buenos días. Hago mis mapas con el código que os copio abajo, pero me gustaría que me dibujase las líneas del mapa después de poner los puntos para que se vean. Puedo hacer los puntos más pequeños, pero entonces quedan separados y yo quiero que rellenen el mapa. Gracias, como siempre, Manuel print(ggplot(legend=FALSE)+geom_path(data=map_data('world'), aes(x=long,
2007 Feb 17
1
Unable to start Asterisk 1.4 on CentOS 4.4 (installed from ATrpms)
Hi Everyone, I am still unable to start Asterisk 1.4 that I installed using ATrpms. I was initially suspecting some permissions issues but it seems to me that its more to do with a speex codec not loading properly. Here is the message I get if I run asterisk -cvvvvvvvvvvvvvv app_userevent.so => (Custom User Event Application) == Parsing '/etc/asterisk/codecs.conf': Found --
2015 Nov 13
2
Colores en labels de un mapa
Estimados por solicitar su ayuda, estoy intentando cambiar el color de una etiqueta de un gráfico, he realizado múltiples intentos sin un resultado satisfactorio. Debido a que necesito realizar múltiples gráficos he realizado una función que dando parámetros de entrada me grafique las variables o los valores que deseo. Mi problema es en la representación de los colores. Los parámetros de la
2006 Jan 31
24
Need help and advised
Hi folks Im currently doin firewall project.. the scenario is like this.. my application server open port number 3079 the server ip is 202.188.0.132. and now the port can be accessed from everywhere. Now i want to block all the everywhere accessed. But my problem is, the application will be accessed by few locations that doing transaction with the application server. and the said locations are
2006 Aug 11
5
Unit tests - NilClass problem
Hi! Yesterday I started to write my unit tests for the fist time using rails. I''m using this method: http://blog.codahale.com/2005/12/23/a-rails-howto-simplify-your-unit-tests/ My customer_test.rb looks like this: require File.dirname(__FILE__) + ''/../test_helper'' class CustomerTest < Test::Unit::TestCase fixtures :customers # Replace this with your real
2006 Jan 27
5
Advice please - best hardware/config to combine 3 ISPs
I want to build a robust firewall for a resort installation. The resort''s telephony is entirely VOIP, asterisk based. We have the following internet feeds: 1) 512/512 kb fixed bandwidth leased line with static IP from Telco- primary connection, expensive, to use for VOIP, VPN traffic, mail server, SSH access for remote work. Reliable. 2) 256/512 kb ADSL from Telco, not fixed IP -
2006 Mar 01
4
filtering HTTP signatures / headers ?
Is it possible to filter HTTP signatures/headers with SHOREWALL ? or is there addon for it ? take care *º¤., ¸¸,.¤º*¨¨¨*¤ Stingray *º¤., ¸¸,.¤º*¨¨*¤ __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ------------------------------------------------------- This SF.Net email
2002 Jul 04
3
Reloading Smb.conf automatically?
Just a few quick questions: If I make changes to smb.conf, do I need to restart the SMB and NMB services, or is it like Vixie Cron, where it'll re-read the file and adapt changes every minute? Why do I have multiple NMB instances running, but only one SMB? Thanks for the help! Aton
2007 Aug 08
6
The CentOS-Plus kernel
I see the new kernel available in the plus repository... is there some way to view what the differences are between that and the mainline kernel?
2014 Jan 02
2
Ayuda con red neuronal y creación de curvas ROC
Hola a todos, y gracias por leer mi mensaje: Llevo utilizando unos meses R, vengo de SPSS, y estoy muy sorprendido con su capacidad. Mi problema, es que estoy intentando hacer una comparación entre tres sistemas de predicción: una regresión logística, un árbol de clasificación y una red neuronal. De momento, he podido hacer las comparaciones con los dos primeros sistemas, pero mi problema es la
2012 Jul 17
3
complexity of operations in R
Hello! I am optimizing my code in R and for this I need to know a bit more about the internals. It would help tremendously if someone could link me to a page with O()-complexities of all the operations. In this particular case, I need something like a linked list with O(1) insertLast/First ability. I can't preallocate a vector since I do not know the final size of the list ahead of time. The
2013 Jul 16
4
Sqldf y codificación \u00b0 para el grado
Buenos días: Creo un data.frame del siguiente modo: d<-data.frame(a=c("112.45º", "23,56º"), b=c("112.45\u00b0", "23.56\u00b0")) > d         a       b 1 112.45º 112.45° 2  23,56º  23.56° Como podéis ver, para la primera columna vuelco el grado directamente, y para la segunda utilizo \u00b0, que es lo que debo perseguir. Ahora obtengo d2 del