[R] backslash in character string?

Uwe Ligges ligges at statistik.tu-dortmund.de
Tue Aug 5 11:04:15 CEST 2008


Please read the R for Windows FAQs.

Uwe Ligges


zack holden wrote:
> Dear list,
>  
> After searching many old posts, I can't find the solution to a simple problem. 
>  
> can someone tell me how to create a character string with multiple backslashes, as in: 
>  
> file_dir <- c("C:\files\data\") 
>  
> I need to create this string and then paste it to many files names for batch processing in another software program. R won't accept the backslash and removes it.
>  
> Thanks for any suggestions,
>  
> zack
>  
>  
> 	[[alternative HTML version deleted]]
> 
> ______________________________________________
> 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