[R] problem with unmatched quotes

Uwe Ligges ligges at statistik.tu-dortmund.de
Mon Dec 14 10:25:06 CET 2009


Escape the inner quotes.

Uwe Ligges


Alfredo Alessandrini wrote:
> Hi,
> 
> I've a problem with unmatched quotes with a bash script within a R script:
> 
> 
>> system("awk 'NR>2 {FS=" ";print$1","$2","$3","$4","$5","$6","$7","$8","$9","$10","$11","$12;}' phenology.txt")
> Errore: unexpected string constant in "system("awk 'NR>2 {FS=" ";print$1""
> 
> 
> 
> Alfredo
> 
> ______________________________________________
> R-help at 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.




More information about the R-help mailing list