Hello R helpers,

 

I get a problem using gsub() function.

 

I have the following text :

 

text <- ‘’ INFILTRATION INF_BASE 

 AIRCHANGE=1 ‘’

 

Then my code is :

 

original <- "INFILTRATION INF_BASE \n AIRCHANGE=1"

 

replace <- "INFILTRATION INF_BASE \n AIRCHANGE=3"

 

new_texte <- gsub(original,replace,text)

 

but it doesn’t work.

 

Nevertheless, cat(original) works but print(original) doesn’t…

 

Would you have an idea ?

 

Thanks

 

Thibault Charles

Solamen

Audencia - 8 route de la Jonelière

44300 Nantes

+33 2 40 37 46 76

 


        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to