LISTSERV mailing list manager LISTSERV 16.0

Help for R-USERS-L Archives


R-USERS-L Archives

R-USERS-L Archives


R-USERS-L@LISTS.UFL.EDU


View:

Message:

[

First

|

Previous

|

Next

|

Last

]

By Topic:

[

First

|

Previous

|

Next

|

Last

]

By Author:

[

First

|

Previous

|

Next

|

Last

]

Font:

Proportional Font

LISTSERV Archives

LISTSERV Archives

R-USERS-L Home

R-USERS-L Home

R-USERS-L  2018

R-USERS-L 2018

Subject:

File path change

From:

"Chaudhary,Vratika" <[log in to unmask]>

Reply-To:

UF R Users List <[log in to unmask]>

Date:

Wed, 10 Oct 2018 02:34:17 +0000

Content-Type:

multipart/mixed

Parts/Attachments:

Parts/Attachments

text/plain (1 lines) , R_group_example_camelot_data.csv (1 lines)

Hi all


This is a question regarding file path change. I have an image database, from a  camera trap data management software (camelot) from which I need to seperate certain specific images into a different folder.  Each of the image has a metadata associated with it, one of the metadata being species tag. I want to extract only specific species in a separate folder.  It is a data frame where each row represents a single image which has a specific path (pasted below). Hence my question is regarding trying to change absolute file path in R, I am trying to do so using file.path but haven’t been successful. Alternatively, if I use file.copy - is there a way to choose ‘pattern’ so that species with a specific metadata (e.g. Elephant) gets selected. Also attached is the csv with first 10 rows of the data.

Thank you
Vratika



 I would need to change the path to something like: 

/users/vratika/desktop/elephant/filename

from the existing path: 


head(f1.2)
                                                                                         Absolute.Path
1 /Users/Vratika/Library/Application Support/camelot/Media/ce/ceab3647-bc09-45a3-9505-c17d5166d446.jpg
2 /Users/Vratika/Library/Application Support/camelot/Media/1e/1e9ca86c-18a2-42c5-8903-0b8e1af46bc9.jpg
3 /Users/Vratika/Library/Application Support/camelot/Media/4e/4e6ead9b-b6fc-4c4d-b9c7-54055fe7a0d9.jpg
4 /Users/Vratika/Library/Application Support/camelot/Media/57/57953a3d-5083-4041-804e-7b6a0d00b546.jpg
5 /Users/Vratika/Library/Application Support/camelot/Media/59/59255c10-20da-4fa0-9b2b-1a9f3690f951.jpg
6 /Users/Vratika/Library/Application Support/camelot/Media/cb/cb256dc1-5958-4881-a3f5-12e80fcb178e.jpg



This list strives to be beginner friendly.  However, we still ask that you
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Top of Message | Previous Page | Permalink

Advanced Options


Options

Log In

Log In

Get Password

Get Password


Search Archives

Search Archives


Subscribe or Unsubscribe

Subscribe or Unsubscribe


Archives

2019
2018
2017
2016
2015
2014
2013
2012
2011
2010
2009
2008

ATOM RSS1 RSS2



LISTS.UFL.EDU

CataList Email List Search Powered by the LISTSERV Email List Manager