[R] Latentnet Data Import

From: Ben Morley <me_at_benmorley.com>
Date: Wed, 26 Mar 2008 11:15:31 +0000

Hello everone,

I am a computer science researcher in the UK - and have a quick question regarding importing data into R and more specifically latentnet.

I am trying to import data such as a text file containing: (This is based on the Sampson data set)


Network attributes:

   vertices = 3
   directed = TRUE
    hyper = FALSE
   loops = FALSE
   multiple = FALSE
    total edges= 3

 Vertex attribute names:

    group vertex.names

 edgelist matrix:

      [,1] [,2]

[1,] 3 1
[2,] 2 1
[3, ] 3 2

What command should I use to import this data? I have attempted many such as "read.delim" and "read.table" - but either an error message is returned, or the strings in the data (such as edges=3) appear to become objects that are analysed by the latentnet functions such as 'ergmm'.

I look forward to your replys,

Many thanks

Ben  



R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Wed 26 Mar 2008 - 16:28:37 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Wed 26 Mar 2008 - 21:30:24 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive