search for: ignacio82

Displaying 13 results from an estimated 13 matches for "ignacio82".

Did you mean: ignacio
2019 Feb 02
1
Set the number of threads using openmp with .Fortran?
...o from 0 Hello from 1 [1] "Each thread will say hi to you!" Alas, on Windows the same command just returns "Each thread will say hi to you!" without the Hello from X Thanks for your help, Ignacio On Sat, Feb 2, 2019 at 11:34 AM Ignacio Martinez <ignacio82 at gmail.com> wrote: > > > I was able to make some progress by using this > <https://github.com/bert9bert/ParallelForest/blob/master/src/Makevars> as > a reference. Now: > > *This is my makevars:* > ##### Compiler flags ##### > PKG_FCFLAGS = $(SHLIB_OPENMP_FFL...
2015 Jul 13
2
Crear datos aleatorios con restriciones
...cho es que quieres "asignar un profesor a una escuela un > grado y dos clases". Dos clases, del mismo colegio y en el mismo grado, ¿es > así?... > > Saludos, > Carlos Ortega > www.qualityexcellence.es > > > > El 14 de julio de 2015, 0:07, Ignacio Martinez <ignacio82 en gmail.com> > escribió: > >> Gracias Carlos, >> >> Tu codigo es un gran paso en el sentido correcto pero no produce >> exactamente lo que estoy buscando. >> >> Mi "solucion" en stackoverflow >> <http://stackoverflow.com/questions/311...
2015 Jul 13
2
Crear datos aleatorios con restriciones
...profesores, de forma aleatoria > t <- 10 > validPairs[sample(1:nrow(validPairs), t), ] > > #--------------------------------------------------------- > > Saludos, > Carlos Ortega > www.qualityexcellence.es > > > El 13 de julio de 2015, 21:03, Ignacio Martinez <ignacio82 en gmail.com> > escribió: > >> Hola, >> >> 0. La falta de 'elegancia' hace que sea mas dificil hacer cambios al >> codigo. Por ejemplo cambiar n.classrooms <- 4 a n.classrooms <- 20 >> >> 1. Cuando tengo solo 4 puedo hacer esto: >> &g...
2015 Jul 27
2
R package with Fortran module on Windows? undefined reference to `__stack_chk_fail'
Hi, I created a R library that uses a Fortran module. Everything works like a charm on linux. Now I'm trying to make it work on Windows. I cloned my git repository <https://github.com/ignacio82/MyPi> on a windows computer, and when I press the build and reload button on Rstudio I get these errors: ==> Rcmd.exe INSTALL --no-multiarch --with-keep.source MyPi * installing to library 'C:/Users/IMartinez/Documents/R/R-3.2.1/library'* installing *source* package 'MyPi' .....
2019 Feb 01
2
Set the number of threads using openmp with .Fortran?
Hi everybody, I'm trying to develop an R package with Fortran and OpenMP. I wrote a simple hello world but I'm not able to set the number of threads. I found this old email chain <http://r.789695.n4.nabble.com/Set-the-number-of-threads-using-openmp-with-C-td2284685.html> and I tried to set my compile instructions accordingly but i had no luck. *This is my makevars:*
2013 Apr 25
2
[SQL]
Hi, The data for my new project are in a bunch of .sql files, instead of the clasic csv files that I'm used to work with. Could someone explain to me how to read these files into R? Thanks, -Ignacio [[alternative HTML version deleted]]
2015 Jul 13
2
Crear datos aleatorios con restriciones
...; combinaciones te explota?... > > En cuanto a las asignaciones de los profesores, ¿quieres tener todas las > posibles asignaciones? ¿un solo caso de asignación?... > > Saludos, > Carlos Ortega > www.qualityexcellence.es > > 2015-07-13 15:23 GMT+02:00 Ignacio Martinez <ignacio82 en gmail.com>: > >> Hola, >> >> Esta pregunta la hice en stackoverflow >> > < >> http://stackoverflow.com/questions/31137940/randomly-assign-teachers-to-classrooms-imposing-restrictions/31143808#31143808 >> >pero > > >> nadie pudo conte...
2015 Jul 27
0
R package with Fortran module on Windows? undefined reference to `__stack_chk_fail'
...9;s a separate issue.) As an aside, be sure to check out what R-exts has to say on the topic of Fortran code in R packages (especially F90 and above): https://cran.r-project.org/doc/manuals/r-release/R-exts.html#Using-F95-code. Cheers, Kevin On Mon, Jul 27, 2015 at 11:06 AM, Ignacio Martinez <ignacio82 at gmail.com> wrote: > Hi, > > I created a R library that uses a Fortran module. Everything works like a > charm on linux. > > Now I'm trying to make it work on Windows. I cloned my git repository > <https://github.com/ignacio82/MyPi> on a windows computer, and whe...
2015 Jul 13
2
Crear datos aleatorios con restriciones
Hola, Esta pregunta la hice en stackoverflow <http://stackoverflow.com/questions/31137940/randomly-assign-teachers-to-classrooms-imposing-restrictions/31143808#31143808>pero nadie pudo contestarla. 1. Quiero generar N escuelas, con G grados y C divisiones. 2. Quiero asignar cada uno de T maestros a 2 divisiones en un grado y escuela Si tengo C=4 divisiones, puedo lograr lo que quiero con
2019 Feb 02
0
Set the number of threads using openmp with .Fortran?
...om 7 Hello from 4 $ncores [1] 2 What am I missing? My Fortran subroutine uses !$call omp_set_num_threads(ncores) to set the number of threads. Why is this not working? How can I fix it? Thanks a lot for the help Ignacio On Fri, Feb 1, 2019 at 4:51 PM Ignacio Martinez <ignacio82 at gmail.com> wrote: > Hi everybody, > > I'm trying to develop an R package with Fortran and OpenMP. I wrote a > simple hello world but I'm not able to set the number of threads. I found this > old email chain > <http://r.789695.n4.nabble.com/Set-the-number-of-threa...
2013 Oct 19
2
ivreg with fixed effect in R?
I want to estimate the following fixed effect model: y_i,t = alpha_i + beta_1 x1_t + beta_2 x2_i,tx2_i,t = gamma_i + gamma_1 x1_t + gamma_2 Z1_i + gamma_3 Z2_i I can use ivreg from AER to do the iv regression. fm <- ivreg(y_i,t ~ x1_t + x2_i,t | x1_t + Z1_i + Z2_i, data = DataSet) But, I'm not sure how can I add the fixed effects. Thanks! [[alternative HTML
2012 Nov 05
1
Plot 3 lines in one graph
I'm new with R. I want to plot 3 lines in one graph. This is my data: print(x) V1 V2 V3 V41 -4800 25195.73 7415.219 7264.282 -2800 15195.73 5415.219 7264.28 I tried using matplot, but I cannot get exactly what I want. This is what I get, and this is my code: matplot(x[,1],x[,-1],type='b', xlab = "epsilon_h", ylab = "Value2", xlim=
2012 Nov 21
1
Finding a max
My data looks like this: X Y1(X) Y2(X) i want to find the values of x that maximize Y1 and Y2. Right now I'm getting the answer but I would like to know if there is a more efficient/elegant way of doing this. This code reproduces what I'm doing: [code] prop3<-structure(list(effort = c(0, 0.008989899, 0.017979798, 0.026969697, 0.035959596, 0.044949495,