sinkovit / Spatial-ecology

Space use software deployed in the Spatial Ecology Gateway
MIT License
2 stars 0 forks source link

Save Movebank data #23

Closed monaw closed 1 year ago

monaw commented 1 year ago
monaw commented 1 year ago

From Bob via Slack:

After you pull data from Movebank, you can save as a csv file for later use with the write.csv() method. Let's do that instead of saving as an RData object. Simple example below

gpsdata <- getMovebankLocationData(study=study, login=login)
gpsdata <- preprocessDataframe(gpsdata)
write.csv(gpsdata, "mydata.csv")

We need to decide if we should write before or after pre-processing - my initial inclination is after - but it's easy enough to move a single line of code. It might also be nice to prompt the user to for the name of the file. A good default might simply be the study id followed by ".csv". And we can stop automatically looking for the saved file and instead have the user explicitly upload the file. That will save a lot of potential confusion.