Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

filepath check in R both absolute and relative

I have no idea how to do this. i have a list of filepath in a column. Now i want to check if at all the filepath is absolute path or not based on both windows or Linux system.

Ex-

somefunction("C:\eclipse-standard-kepler-SR1-win32\eclipse")
ANS: absolutepath or T 
like image 308
Koushik Saha Avatar asked Jan 20 '14 17:01

Koushik Saha


1 Answers

The package R.utils has a isAbsolutePath and getAbsolutePath function.

like image 157
Justin Avatar answered Oct 31 '22 11:10

Justin