Displaying 5 results from an estimated 5 matches for "richiardi".
Did you mean:
ricciardi
2011 Dec 01
1
efficient ways to dynamically grow a dataframe
...df1$t==t,"x"] = x
}
}
df = rbind(df,df1)
This is also too slow, and my PC gets stucked. I don't want to go for
a matrix, because I'd loose the column names and everything will
become too much error-prone.
Any suggestions on how to do it?
Thanks in advance,
Matteo
--
Matteo Richiardi
University of Turin
Faculty of Law
Department of Economics "Cognetti De Martiis"
via Po 53, 10124 Torino
Email: matteo.richiardi at unito.it
Tel. +39 011 670 3870
Web page: http://www.personalweb.unito.it/matteo.richiardi/
2011 Nov 28
1
detecting autocorrelation structure in panel data
Hello,
I'm a newby in R. I have created a data.frame holding panel data, with
the following columns: "id","time","y", say:
periods = 100
numcases = 100
df = data.frame(
id = rep(1:numcases,periods),
time = rep(1:periods, each = numcases)
)
df = transform(df,y=c(rnorm(numcases*periods)+id)
I want to check whether "y" is autocorrelated. I came across
2011 Nov 23
1
character substitution within a variable name
Hi,
I'd like to create a function that accepts as arguments a string that is to
be substituted within a variable name. For instance, suppose I have a data
frame df:
df<-data.frame(x_narrow=c(rnorm(100,0,1)),x_wide=c(rnorm(100,0,10)))
What I have in mind is something like:
f <- function(string){
var = paste("x_",string,sep = "")
df$var
}
which does not work. Any
2013 Mar 19
1
How can I eliminate a loop over a data.table?
I've two data.tables as shown below:
***
N = 10
A.DT <- data.table(a1 = c(rnorm(N,0,1)), a2 = NA))
B.DT <- data.table(b1 = c(rnorm(N,0,1)), b2 = 1:N)
setkey(A.DT,a1)
setkey(B.DT,b1)
***
I tried to change my previous data.frame implementation to a
data.table implementation by changing the for-loop as shown below:
***
for (i in 1:nrow(B.DT)) {
for (j in nrow(A.DT):1) {
if
2011 Dec 05
1
using StatEt IDE for Eclipse
Hi,
I'm trying to use StatEt IDE for Eclipse as my R editor, but I'm completely
lost. I've read all I could find online, made apparently all I had to do
(installing rj, configuraing StatEt, etc.) but still cannot make R running.
Below is the error log file.
Thank you so much for assistance.
Matteo
!ENTRY de.walware.statet.r.console.ui 1 0 2011-12-05 16:21:51.355
!MESSAGE