Try this. If the format varies you may need to modify it from below. Replace
textConnection(rawLines) with the name of your file. This extracts lines with
a = and rereads them using read.table with = as the separator. It also
gets lines with a number that has spaces on both sides, deletes everyt
It all depends. If your looks like your sample, then you will
probably want to read the data with 'readLine' and bring in the entire
line without trying to parse it. You would then go through the data
with 'grep' to find the lines of interest and then you can use
'strsplit' or regular expressions
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:
verti
3 matches
Mail list logo