similar to: Convertir programa Matlab a R sacado de Threshold Models of Collective Behavior de Michèle Lai & Yann Poltera

Displaying 20 results from an estimated 130 matches similar to: "Convertir programa Matlab a R sacado de Threshold Models of Collective Behavior de Michèle Lai & Yann Poltera"

2009 Nov 26
1
Does nargin and nargout work with R functions?
I am porting some MATLAB functions over to R and hopefully into a package, so I am curious if nargin and nargout work with R functions. Here is kind of an example of where I need to head in order to port "control-1.0.11" from Octave over to R. The Octave "control-1.0.11" package has the capability to produce bode plots of transfer functions. I hope to post this package once
2017 Nov 03
2
fractales
Mira el conjunto de mandelbrot en r cómo mola https://www.google.es/amp/s/www.r-bloggers.com/the-mandelbrot-set-in-r/amp/ El 3 nov. 2017 4:20 PM, "eric" <ericconchamunoz en gmail.com> escribió: > hola luis, podrias explicarte un poco mas ? que quieres decir con "obtener > fractales de una imagen" ? > > Puedes construir una imagen con fractales, pero
2013 Jul 24
3
Change values in a dateframe
Hello I have the following problem : The dataframe TEST has multiple lines for a same person because : there are differents values of Nom or differents values of Prenom but the values of Matricule or Sexe or Date.de.naissance are the same. TEST <- structure(list(Matricule = c(66L, 67L, 67L, 68L, 89L, 90L, 90L, 91L, 108L, 108L, 108L), Nom = structure(c(1L, 2L, 2L, 4L, 8L, 5L, 6L, 9L, 3L, 3L,
2003 May 28
1
Kernel density
Hi, I want to fit a kernel density estimator by bkde of library KernSmooth. I need only the density value at the point 0. I do not understand the following behaviour: > q <- rnorm(100) > bkq <- bkde(q, bandwidth=0.11, gridsize=1, range.x=c(0,0)) Error in 0:L : NA/NaN argument > bkq <- bkde(q, bandwidth=0.11, gridsize=1, range.x=c(-1,1)) > bkq $x [1] -1 $y [1] NA > bkq
2005 Aug 10
2
extend question
Is it possible to call the super class''s version of a function from a subclass? SuperClass = Class.create(); SuperClass.prototype = { initialize: function(){ this.varA = ''''; this.varB = ''''; } } SubClass = Class.create(); SubClass.prototype = (new SuperClass()).extend({ initialize: function(somevar) { this.somevar = somevar; }
2012 Apr 03
4
R+netcdf, resultados de WRF
Saludos estimados usuarios ! Estoy recién iniciándome en R y no he encontrado ejemplos de cómo graficar los archivos netcdf que genera el modelo meterológico WRF. ¿Alguien tiene por ahí algunos scripts que me permitan ir interiorizándome en el uso de paletas de colores, mapas y graficas de variables de este modelo? Anteriormente lo hacía vía GrADS, convirtiendo el NetCDf a GRIB, pero con las
2007 Mar 20
2
Translating code from R into Matlab code
Hi, Correct me if I am wrong but can I translate the R code into Matlab via this package. ie I have a script in R, if I run this package on a Unix emulator can I get the R code displayed in Matlab format ( R code changed into Matlab code). If that is possible that would be great and if so how. Also, If this program cannot do this do you know one that can do this: Regards, James Flood
2012 Feb 14
0
Agregar scatterplot a stat_contour con ggplot2
Estimados: Estoy entrampado con el siguiente problema. Poseo un dataframe (f), con datos x, y, z, los cuales no son coordenadas ni alturas, sino niveles de tres variables cualquiera. Lo que busco es presentar en un gráfico es: a) el scatterplot de las variables ''x'' e ''y'', y además b) las isolineas de ''z'' para los distintos niveles de
2009 Jan 29
4
Help understanding EVERYTHING
Team, I am trying to learn a GUI for Ruby and I picked wxRuby. The problem is that I am kind of slow learning this and I now feel frustrated after trying for about at least 7 hours. I am trying to design a simple Sudoku 9x9 grid to display numbers, 1 - 9, using buttons. I posted a question on Ruby forum ruby-talk and a gentleman, Alex Fenton, answered my questions. Alex gave me what appear to be
2011 Aug 09
1
How to pass different arguments to a function within lapply()?
Hi all, I have a data frame called "rst", see below: ------------------------------------------------------------------------------------------ # This is a paste able example # In case you don't have "KernSmooth" package installed, please uncomment below line. # install.packages("KernSmooth") library(KernSmooth) rst <- data.frame(hsp = rnorm(23), dal =
2012 Jul 16
2
about dpik
Thank you for your reply. I know the x in dpik() means the vector. But I don't know how to import into c() with a huge metadata (>1000). Following is my some try, and the h is: [1] 0.001180569, which seems to be feasible.
2006 Dec 18
2
surface3d grid from xyz dataframe
Hi List, I am trying to plot a grid with an overlayed height. I have a dataframe with four variables: x,y,gridvalue,height. The dataframe has 2.5mio observations (ie grid points), I assign colors through the gridvalue using map_color_gradient thus producing: x,y,gridvalue,height,gridcol as variables of the dataframe. The grid dimensions are 1253 x 2001 (=2507253 data points). My attempts with
2012 Jun 14
2
density plot on a log scale
I'm working with a large dataset - large enough that when I do a scatter plot the points all blur together, so I want to plot their density by color - a heat map or something like that. I've used smoothScatter for tasks like this, but the problem is that my current dataset really only looks good on a log-log scale. When I do the following command smoothScatter( data,
1999 Dec 07
0
Minimize function of several variables?
Hi, Is there something like the Matlab function FMINS in any R packages? Here is the help file of fmins in case something similar exist under R with a different name. Thanks in advance. Yves Gauvreau *********************** function [x, options] = fmins(funfcn,x,options,grad,varargin) %FMINS Minimize function of several variables. % X = FMINS('F',X0) attempts to return a vector X
2005 Mar 16
8
Summing up matrices in a list
Dear all, I think that my question is very simple but I failed to solve it. I have a list which elements are matrices like this: >mylist [[1]] [,1] [,2] [,3] [1,] 1 3 5 [2,] 2 4 6 [[2]] [,1] [,2] [,3] [1,] 7 9 11 [2,] 8 10 12 I'd like to create a matrix M<-mylist[[1]]+mylist[[2]] [,1] [,2] [,3] [1,] 8 12 16 [2,] 10 14 18
2012 Jul 15
1
About dpik function
Hi there and thanks in advance. Nowadays I am working on the plug-in bandwidth selection with R. Firstly, my 1010 data is the return rate from Yahoo Finance. Secondly, my code is following: > r=read.table("/Users/user/Desktop/research/a.txt",sep=",",header=TRUE) > x<-r[8:1010,] > library(KernSmooth) >
2013 Aug 23
0
[off-topic] Datathon para el bien social de la Campus Party, en Londres, del 2 al 7 de Septiembre 2013
(Quisiera aclarar antes de nada que hay total libertad de usar las herramientas analíticas que se deseen, por supuesto R, y que se va a poner a disposición de los participantes una plataforma BigData de Telefónica -cosmos). ¿Puede BigData reformar tu ciudad? ¡Entra en el Datathon para el bien social de la Campus Party, en Londres, del 2 al 7 de Septiembre 2013! Regístrate en:
2013 Sep 22
2
colores
Como usas la función image puedes consultar la ayuda ?image o help(image) y encontrarás el siguiente ejemplo donde se usa un diferente color Palette (mencionada por pepeceb en su respuesta). x <- 10*(1:nrow(volcano)) y <- 10*(1:ncol(volcano)) image(x, y, volcano, col = terrain.colors(100), axes = FALSE) # O puedes usar directamente el número para indicar el color image(x, y, volcano, col =
2007 Apr 27
1
panel as child of grid on Windows
I am attempting to add controls inside a Wx::Grid. I added a Wx::Panel as a child of the grid, then added a control to that panel. In the actual code, the child panel would be sized and located inside a single grid cell, but I simplified the example code. On linux with GTK, this code performs as expected--you get a green panel with a clickable button in it. On windows XP, however, the grid and
2006 Mar 31
1
mutual information for two time series
Hi I hope this is going to the right place. I am trying to write a program which uses KernSmooth library to estimate mutual information between two time series at various different lags. At the moment it’s producing negative values, which is supposed to be impossible (something is fishy). I am summing across one row of the matrix to get p(value is in bin x) and summing across the columns to get