Closed NewGraphEnvironment closed 8 months ago
I'll do a trial and error on this when I get the chance. Might not even need a script. I would think you would be able to do this in the attribute forms in our Q mergin project by adding a default of sorts?
Good idea to do in Q but currently not an option I don't think because of this https://github.com/MerginMaps/input/issues/1595
potential workflow can be tweaked from the 0120-photos.R
scripts
case_when
to mutate site_id
from pscis_id
and modelled_crossing_id
select
just site_id
and contains
"photo_"mutate(photo_downstream_renamed = paste0(photo_downstream, "_downstream")
dplyr::pivot_longer
to make a 3 column dataframe with headers site_id
, name_before
, name_after
pull
site_id
and create.dir
for that listmutate
name_before
and name_after
to be full path filenames with the site_id
installed in name_after
of coursemapply
version of fpr::fpr_photo_change_names
abstract workflow later to pull out the appended word after photo_{word}
using tidyeval.
upstream downstream inlet outlet barrel road