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 ---

[R] Merge the data from multiple text files

2019-01-05 Thread Priya Arasu via R-help
I have multiple text files, where each file has Boolean rules. Example of my text file 1 and 2 Text file 1: A = not(B or C) B = A and C C = D Text file 2: A = D and E B = not(D) I want to merge the contents in text file as follows A = not(B or C) and (D and E) B = not(D) and (A and C) C = D Is

Re: [R] Function to save results

2017-11-01 Thread Priya Arasu via R-help
0   0 | 001244   0 | 556789   1 | 113   1 | 5788 > # Success Depending on your operating system, you may also be able to save the output with File | Save to File. --- David L Carlson Department of Anthropology Texas A University College Station, TX 77843

Re: [R] Function to save results

2017-11-01 Thread Priya Arasu via R-help
point to set attr <- sink(...). Just give the command sink("C://etc")2. to complete the saving to the file you must give a second sink command with no argument:  sink()So your code would be (pseudo-code, not actual code) sink( "filename" )do something that prints output wh

Re: [R] Function to save results

2017-11-01 Thread Priya Arasu via R-help
ut which will be captured by sinksink() HTH,Eric On Wed, Nov 1, 2017 at 1:32 PM, Priya Arasu via R-help <r-help@r-project.org> wrote: Hi,I want the results to be saved automatically in a output text file after the script has finished running. I used the sink function in th

[R] Function to save results

2017-11-01 Thread Priya Arasu via R-help
Hi,I want the results to be saved automatically in a output text file after the script has finished running. I used the sink function in the following example, but the results file (output.txt) was empty. net <- loadNetwork("C://Users//Priya//Desktop//Attractor analysis_all

[R] Help-Text file

2016-11-05 Thread Priya Arasu via R-help
Hi, I am using R 3.3.1 in R studio version 1.0.44 (Windows10, 64 bit system). I could import text file with Boolean rules, but when I start doing analysis in R, I get the error: I have been trying to do attractor analysis using R package Boolnet, using the command: attr <-

[R] Stop R script from running, when the memory goes beyond 15.4GB

2016-11-05 Thread Priya Arasu via R-help
Hi, I am using R 3.3.1 in RedHat Linux7 , 64bit system (16GB RAM).  I could run simulation in R package, Boolnet for 25 genes without any problem. When I add more gene i.e. 26 genes, the system becomes slow. Simulation keeps running for more than a day. I have to stop the simulation, as