m: David Winsemius [mailto:dwinsem...@comcast.net]
Sent: 31 May 2009 17:11
To: Benny Chain
Cc: r-help@r-project.org
Subject: Re: [R] renaming column names
Cannot reproduce with a toy example:
> data <- data.frame(a=1:3, b=4:6, c=6:8)
> colnames(data) <- c("d","e",&q
olnames(data)
I get the same set of names as before, so the assignment doesnt seem to have
worked.
Any ideas or suggestions gratefully received.
Benny Chain
Benjamin Chain
Division of Infection and Immunity
Windeyer Building
UCL, 46 Cleveland St.
London W1T 4JF
Does anyone know a way to calculate the covariances between two
arrays/matrices x and y, row by row. i.e. var(x[n,],y[n,]) for all n ?
Benjamin Chain
Division of Infection and Immunity
Windeyer Building
UCL, 46 Cleveland St.
London W1T 4JF
Fax 00 44 20 7679 9301
__
3 matches
Mail list logo