search for: p0fichiers

Displaying 2 results from an estimated 2 matches for "p0fichiers".

Did you mean: fichiers
2007 Aug 27
0
how to write nicely a condition on a loop "for" (that is, not like I did)
...way to solve it taking advantages of the R language (which I don't master at all), that is with less "if" tests. To sum up : nfichiers is a list of files (with .P0 or .Px (x>0) extension) I have to copy to a database. nfichiers can also be "0" if there is no file to copy p0fichiers is the list of files having the .P0 extension if there are such files to copy And p0fichiers can also be "0" if there are only .Px files to copy So, before doing the "for" loop, I want to test if p0fichiers really contains something. Thanks for your comments and your advices to...
2007 Aug 27
4
Problem with save or/and if (I think but maybe not ...)
...relrfichiers<-dir(chemin, pattern=".P") rfichiers<-paste(chemin,relrfichiers, sep='') if (file.exists("tfichiers.r")) { tfichiers<-load("tfichiers.r") nfichiers<-setdiff(rfichiers,tfichiers) } else { nfichiers<-rfichiers } # p0fichiers : fichiers avec l'extension .P0 (fichiers contenant des lignes d'infos ? ne pas charger) # pxfichiers : fichiers avec les extensions P1, ..., P8 (sans infos au debut) if (nfichiers!="0") { p0fichiers<-nfichiers[grep(".P0", nfichiers)] pxfichiers<-setdiff(nfich...