search for: fichier_init

Displaying 1 result from an estimated 1 matches for "fichier_init".

2008 May 21
2
Search a string and modify it in a .txt file
...an array like this one PA1 PA2 PA3 PB1 .... j=1 12 2 1 5 j=2 10 3 2 4 j=3 11 4 3 6 ... To create each file I use : for (j in 1:Nb_config_file) { file.copy("fichier_init",paste("Config_file",j,sep="")) } How can I do to search in each config file j created to modify the values of the parameters according to the j-th row of the array? I thought about looking for the lines "'Parameter' = Value" and modify this line...