[R] sna package: how to use dataframes

Gabor Csardi csardi at rmki.kfki.hu
Sun Apr 23 06:52:08 CEST 2006


The as.matrix function creates a matrix from the data frame.
See help(as.matrix) for the details.

Gabor

On Sun, Apr 23, 2006 at 12:29:55AM -0400, Jorge Colazo wrote:
> Hi,
> I an new to R and I realize this may be a silly question, but I searched
> the manuals and the list archives and can't find the answer. 
> 
> When I read data from R I get a dataframe with labels for rows and
> columns. SNA however asks for pure adjacency matrices, and if I try to use
> the dataframe gives an error message. 
> 
> What should do?
> 
> Thanks a lot
> 
> Jorge A. Colazo
> U. of Western Ontario
> 	[[alternative HTML version deleted]]
> 
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

-- 
Csardi Gabor <csardi at rmki.kfki.hu>    MTA RMKI, ELTE TTK




More information about the R-help mailing list