[R] Windows path backward slash

Anbu A rque@t|on2020 @end|ng |rom gm@||@com
Thu Dec 24 04:08:05 CET 2020


Hi All,
I am a newbie. This is my first program.
I am trying to read SAS dataset from below path. I added escape "\" along
"\" found in path C:\Users\axyz\Desktop\sas\  but still not working.

fsasdat<-function(dsn) {
  pat="C:\\Users\\axyz\\Desktop\\sas\\"
  str1=str_c(pat,dsn,".sas7bdat","\n")
  allmetrx=read_sas(str1)
}
fsasdat("all")

Please help me.

Thanks,
AA.

	[[alternative HTML version deleted]]



More information about the R-help mailing list