Re: [R] Merge the data from multiple text files

2019-01-07 Thread David L Carlson
d C)" "not(D)"  > >$C >[1] "D" > >> TF.and <- lapply(TF.list, paste, collapse=" and ") >> TF.final <- lapply(names(TF.and), function(x) paste(x, "=", >TF.and[[x]])) >> TF.final <- do.call(rbind, TF.final) >> T

Re: [R] Merge the data from multiple text files

2019-01-07 Thread Jeff Newmiller
d C)" "not(D)"  > >$C >[1] "D" > >> TF.and <- lapply(TF.list, paste, collapse=" and ") >> TF.final <- lapply(names(TF.and), function(x) paste(x, "=", >TF.and[[x]])) >> TF.final <- do.call(rbind, TF.final) >> TF.fin

Re: [R] Merge the data from multiple text files

2019-01-07 Thread Priya Arasu via R-help
"B = (A and C) and not(D)" [3,] "C = D" > write(TF.final, file="TF.output.txt") The text file "TF.output.txt" contains the three lines. -- David L. Carlson Department of Anthropology Texas A University ---

Re: [R] Merge the data from multiple text files

2019-01-05 Thread David L Carlson
"A = (D and E) and not(B or C)" [2,] "B = (A and C) and not(D)" [3,] "C = D" > write(TF.final, file="TF.output.txt") The text file "TF.output.txt" contains the three lines. -- David L. Carlson De

Re: [R] Merge the data from multiple text files

2019-01-05 Thread David Winsemius
or C) and (D and E) B = not(D) and (A and C) C = D Is there a code in R to merge the data from multiple text files? There is a `merge` function. For this use case you would need to first parse your expressions so that the LHS was in one character column and the RHS was in another character column

[R] Merge the data from multiple text files

2019-01-05 Thread Priya Arasu via R-help
Is there a code in R to merge the data from multiple text files? Thank you Priya  [[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