-
Notifications
You must be signed in to change notification settings - Fork 0
/
makeNamer.R
33 lines (31 loc) · 1.01 KB
/
makeNamer.R
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
scriptStatsRemoveAll <- "~/Pllist.git/RemoveAllExceptFuncs.R"
source(scriptStatsRemoveAll) #clear bones
source("~/Local.R")
library(tools)
setwd('~/')
shell('dir "D:\\PNMTALL\\RPDNClips" /od/b > ddd.txt')
lns=readLines('ddd.txt')
unlink('ddd.txt')
setwd('D:/PNMTALL/RPDNClips')
fnfn=file.info(lns)
fnfn$matcher=paste(fnfn$mtime,fnfn$size)
fnfn$fname=rownames(fnfn)
load('~/fnfoold.RData') # old fnfo
fnfo$fname=rownames(fnfo)
fnfo$matcher=paste(fnfo$mtime,fnfo$size)
mtch=merge(fnfn,fnfo,by='matcher')
mth=mtch[,c('fname.y','fname.x')]
names(mth)=c('oldfn','newfn')
load('~/xxxxold.RData')
mgg=merge(mth,data.frame(oldfn=lsst,xx),by='oldfn')
save(mth,mgg,file='mth.RData')
lsst=mgg$newfn
xx=mgg$xx
missing=lns[which(!lns %in% lsst)]
save(lsst,wpls,xx,missing,file='~/xxxx.RData')
fmfo=file.info(missing)
fmfo$fn=rownames(fmfo)
fnfo$fn=rownames(fnfo)
sz=fmfo[fmfo$size %in% fnfo$size,c(1,4,5)]
mgm=merge(fmfo,fnfo,by='size')
mgx=mgm[,c('fn.x','fn.y','size','mtime.x','mtime.y','ctime.x','ctime.y')]