Displaying 2 results from an estimated 2 matches for "no_of_students_thous".
2018 Jan 19
0
reading lisp file in R
...nes <- readLines(filename)
first <- T
for (ALine in lines) {
ALine <- sub("^ +","",ALine)
ALine <- sub(")","",ALine, fixed = T)
if (length(grep("def-instance", ALine))) {
if (first) {
first = F
}
else {
cat(paste(instance,state,control,no_of_students_thous,"\n", sep = ","))
}
instance <- sub("(def-instance ","",ALine, fixed = T)
next
}
if (length(grep("state ", ALine))) {
state <- sub("(state ","",ALine, fixed = T)
next
}
if (length(grep("control ", ALine))) {
cont...
2018 Jan 18
8
reading lisp file in R
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