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
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
"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
---
"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
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
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
6 matches
Mail list logo