Thanks! I guess one way to do it in R would be to read the lines and then do 
character parsing (string-matching and other operations) to save as a data 
frame and forget about the lines at the end perhaps? I am not sure how general 
such a scheme would be: that is also something I would like to show my 
students, because the fact is that to be useful it should be general or easily 
modified for use other datasets.

Best wishes,
Ranjan

On Thu, 18 Jan 2018 07:02:29 +0200 Eric Berger <ericjber...@gmail.com> wrote:

> It seems the file contains records, with each record having 18 fields.
> I would use awk (standard unix tool), creating an awk script to process the
> file
> into a new file with one line for each record, each line with 18 fields,
> say comma-separated.
> The csv file can then be easily read into R via the function read.csv.
> 
> HTH,
> Eric
> 
> 
> On Thu, Jan 18, 2018 at 6:22 AM, Ranjan Maitra <mai...@email.com> wrote:
> 
> > Dear friends,
> >
> > Is there a way to read data files written in lisp into R?
> >
> > Here is the file: https://archive.ics.uci.edu/
> > ml/machine-learning-databases/university/university.data
> >
> > I would like to read it into R. Any suggestions?
> >
> > Thanks very much in advance for pointers on this and best wishes,
> > Ranjan
> >
> > --
> > Important Notice: This mailbox is ignored: e-mails are set to be deleted
> > on receipt. Please respond to the mailing list if appropriate. For those
> > needing to send personal or professional e-mail, please use appropriate
> > addresses.
> >
> > ______________________________________________
> > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
> > 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.
> >
> 
>       [[alternative HTML version deleted]]
> 
> ______________________________________________
> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
> 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.
> 


-- 
Important Notice: This mailbox is ignored: e-mails are set to be deleted on 
receipt. Please respond to the mailing list if appropriate. For those needing 
to send personal or professional e-mail, please use appropriate addresses.

______________________________________________
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
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.

Reply via email to