Re: [R] plm package

2018-02-08 Thread Edoardo Baldoni
Hi, maybe the function do not automatically understand, as well as you do, what are the N and T dimensions of your panel data frame. You could try using the index parameter of the function to specify your id and time variables. Edoardo 2018-02-08 15:04 GMT+01:00 PAOLO PILI : > Hello, > I got a p

[R] Help in building R with minGW

2015-01-02 Thread Edoardo Baldoni
Dear R users, I would need some help in building R using minGW in windows 8.1. After using the command *configure *(./configure --enable-R-shlib --with-readline=no --with-x=no), I use the command *make. *This results in the following error: [...] make[2]: Leaving directory `/home/Edoardo/r-3.1.2/s

[R] Max/min problems in multivariate calculus

2013-08-28 Thread Edoardo Baldoni
Dear R-help, I would like to ask you how to find the critical points of a function of several variables such as the following one: x = seq(-10,10,0.2) y = seq(-10,10,0.2) zfunc = function(x,y) x^2 + y^2 z = outer(x,y,zfunc) persp(x,y,z,theta = 30,phi=1,ticktype='detailed') Thanks Edoardo

[R] legend in ggmap

2013-07-29 Thread Edoardo Baldoni
Hello, how can I visualize the legend in the following ggmap plot ? In the legend I just want to show the size ranges of the data: ggmap(map) + geom_point(aes(x=Longitude,y=Latitude), size = dataRd[,2]/12, col=2, data=dataRd, alpha=0.7, lwd=2) Thanks Edoardo [[alternative HTML version

[R] Network of cities with distances as edges length

2013-07-25 Thread Edoardo Baldoni
Hello, I am building a network using a distance matrix with the package 'network' I want to create a network with cities as vertices and with the length of the edges between them that reflects their distances. How can I ? All I tried did not work I tried the following code but the result is a g

[R] User defined functions error - where is it ?

2012-12-16 Thread edoardo baldoni
Hello, I have a written a couple of functions (states.trends(.) and trend.generator(.)) to create monthly aggregated time series from disaggregated data. They seem to work pretty fine with all the data I provide, but they give me the following error in one the case I use a particular table (per.aft

[R] error in IF condition with factor evaluation

2012-11-23 Thread edoardo baldoni
Cam anyone tell me why the condition x[i] == "DISCONECTED" looks like producing an NA instead of TRUE/FALSE I would like to rename "DISCONNECTED" those factors inside the variable "dataset$STATUS.x" that are named "DISCONECTED" thank you > summary(dataset$STATUS.x) ACTIVE DISCONECTED P