search for: listfile

Displaying 20 results from an estimated 36 matches for "listfile".

Did you mean: distfile
2012 Apr 27
6
Min , Max
Hellow everyone, This code bellow will calculate average daily wind speed(measurements are taken every three hours).Any ideas how to take the Min and Max instead of average. library(Matrix) setwd("C:\\Users\\aalyaari\\Desktop\\img") listfile<-dir() long <- file("C:\\Users\\aalyaari\\Desktop\\New folder (5)\\inra.bin", "rb") A=readBin(long, integer(), size=2,n=67420*1, signed=F) ta<-t(A) lot <- file("C:\\Users\\aalyaari\\Desktop\\New folder (5)\\lat.img", "rb") B=readBin(lot, integ...
2005 Nov 27
2
'For each file in folder F do....'
...folder and need to apply the same program/procedure to each individually. I'm trying to find how to code something like: For each file in <Folder> do {<Procedure>} is there an easy way to do this? other suggestions? I have tried to list all the files names in a vector e.g. >listfiles[1:10,1] 1 H:/Rtest/AXP.txt 2 H:/Rtest/BA.txt 3 H:/Rtest/C.txt 4 H:/Rtest/CAT.txt 5 H:/Rtest/DD.txt 6 H:/Rtest/DIS.txt 7 H:/Rtest/EK.txt 8 H:/Rtest/GE.txt 9 H:/Rtest/GM.txt 10 H:/Rtest/HD.txt but R doesn't like statements of type >read.table(file=listfiles[1,1]...
2012 Apr 06
2
read multiaple files within one folder
...nd make a loop to go from 1 to 4 and take the average, then from 4 to 8 and so on till 1460. in the end we will get 365 files . I need those 365 files to be in one new folder for later use in my model I tried using this code but didnt seem to be right : Testarray<-array(0, dim=c(1460,720,360)) listfile<-dir("C:\\PHD\\Climate Data\\Wind\\") for (i in c(1:1460)) { Testarray <- file(listfile[i], "rb") Testarray[i,,]<- readBin(conne, integer(), size=2, n=360*720, signed=F) results <- mean(listfile[[(i*4):(i*4+3)]]) results1<-...
2012 May 24
6
R does not recognise columns and rows as they are supposed to be
...ile,ncol=360,nrow=720.I put ncol=360 and nrows =720 which is not right.But that worked and I didn't get any error.however,the results were not correct. Any help please dir1<- list.files("C:\\Users\\aalyaari\\Desktop\\New folder (10)\\Climate_Rad_f_GAMMA_%d.img", full.names = TRUE) listfile<-dir() for (i in c(1:365)) { conne <- file(listfile[i], "rb") file<- readBin(conne, double(), size=4, n=720*360, signed=T) file2<-matrix(data=file,ncol=720,nrow=360) extract[i]<-mean(file2[X,Y],na.rm=TRUE) close(conne) write.table(extract,"C:...
2015 Mar 11
3
7-Zip for CentOS X86-64
Hey Y'all, I'm looking at ZCad: http://sourceforge.net/projects/zcad/?source=directory It looks like the kind of 3D CAD package that I've been looking for. It says that it works on Linux but it's zipped with 7-Zip which doesn't seem to be available for CentOS. Does anyone know if ZCAD or 7-Zip is packaged for CentOS X86-64 somewhere out there? -- _ ?v? /(_)\ ^
2009 Jul 01
1
Average of data files in a directory
Dear all, I know it is as simple as c <- (a + b)/2 to compute the average (element-wise) of two data vectors. However, I can't work out to compute the average when you have many data vectors in a directory. I have done this: ------------------------------------ setwd("/.../data/") listfiles <- list.files(pattern=".pre") # list all datafiles in the directory loadfiles <- lapply(listfiles,read.csv) # read the csv files meanData <- lapply(loadfiles,mean) # intended to compute the element-wise average. ------------------------------------ Which does not produce th...
2012 Aug 01
2
add vectors to multiple objects
Hi everyone, I try to add many vectors (L1,L2,L3....) to many list objects (a.list, b.list....) in a workspace. Somethings like below, but it is not working. Any suggestions will be appreciated. Best, John lf=ls(pattern=".lst")  for (x in listfiles) {     dat=read.delim(x,header=F)     for (i in 1: lf) {     assign(i$add,as.numeric(dat[,3]))   #or i$add=as.numeric(dat[,3]     names(i)[names(i)=="add"]=substr(x,1,5)     print (i[1:3,])  } } [[alternative HTML version deleted]]
2002 May 17
3
Rsync dies
I?m trying to rsync a 210 GB Filesystem with approx 1.500.000 Files. Rsync always dies after about 29 GB without any error messages. I?m Using rsync version 2.5.5 protocol version 26. Has anyone an idea ? Thank?s Clemens
2012 Aug 01
2
assign vectors to objects
Hi everyone, I try to add many vectors (L1,L2,L3....) to multiple list objects (a.list, b.list....) in a workspace. Somethings like below, but it is not working. Any suggestions will be appreciated. Best, John lf=ls(pattern=".lst")  for (x in listfiles) {     dat=read.delim(x,header=F)     for (i in lf) {     assign(i$add,as.numeric(dat[,3]))   #or i$add=as.numeric(dat[,3]     names(i)[names(i)=="add"]=substr(x,1,5)     print (i[1:3,])  }} ________________________________ From: "r-help-bounces@r-project.org" <r-h...
2002 Jul 30
2
Rsync recursion
Hello, I'm trying to break up my rsync process by separating a directory tree into multiple rsync processes because I'm witnessing some errors trying to rsync large directory trees on Windows machines. After breaking up the tree I tried to rsync each individual directory starting from the bottom directory on up using the command: foreach ($array as $directory){ /* $array = list of
2016 Feb 26
5
Anyone know whats up with wiki?
...elated. 2_ Additional links that are not in the Special Pages wiki page anymore (and they used to be): _ Special Pages -> Lists of pages -> Pages linking to disambiguation pages ( Special:Disambiguations ) _ Special Pages -> Media reports and uploads -> File path ( Special:ListFiles ) _ Special Pages -> High use pages -> Most linked-to templates ( Special:MostLinkedTemplates ) 3_ Additionally, the current layout of the Special Pages wiki page seems to be one column of links (under each section / subtitle of the page). The layout for this page used to be a list...
2012 Aug 25
3
Sysvol Replication in Samba4
Hi, We installed a samba4 AD controller using Gpo for a small group of users (5 users), everything is OK. (Samba4 beta 7 on Ubuntu 12.04) We installed another Samba4 AD controller as a BDC of the first one with the command "samba-tool domain join" with succes. After checking this new installation, we saw that the sysvol share was not replicated from the PDC and all the Policies are
2010 Feb 17
1
Bug#570207: logcheck wu-ftpd rules do'nt match
Package: logcheck Version: 1.2.69 Severity: normal In the file /etc/logcheck/ignore.d.server/wu-ftpd ^\w{3} [ :0-9]{11} [._[:alnum:]-]+ wu-ftpd: PAM-listfile: Refused user [._[:alnum:]-]+ for service wu-ftpd$ should be ^\w{3} [ :0-9]{11} [._[:alnum:]-]+ wu-ftpd\[[0-9]{4}\]: PAM-listfile: Refused user [._[:alnum:]-]+ for service wu-ftpd$ There is a number after "wu-ftpd" -- System Information: Debian Release: 5.0.4 APT prefers stable APT...
2007 Jan 30
1
Error message when building a package
...ubs -lmx -lSystem -L/Library/Frameworks/R.framework/Resources/lib/ppc -lR -dylib_file libRblas.dylib:/Library/Frameworks/R.framework/Resources/lib/ppc/libRblas.dy lib /usr/bin/libtool: unknown option character `m' in: -macosx_version_min Usage: /usr/bin/libtool -static [-] file [...] [-filelist listfile[,dirname]] [-arch_only arch] [-sacLT] Usage: /usr/bin/libtool -dynamic [-] file [...] [-filelist listfile[,dirname]] [-arch_only arch] [-o output] [-install_name name] [-compatibility_version #] [-current_version #] [-seg1addr 0x#] [-segs_read_only_addr 0x#] [-segs_read_write_addr 0x#] [-seg_addr_t...
2007 Sep 24
3
Bug#443886: /etc/logcheck/ignore.d.server/proftpd: [proftpd] Refused user $USER for service $FOO
Package: logcheck-database Version: 1.2.61 Severity: wishlist File: /etc/logcheck/ignore.d.server/proftpd Two weeks ago, I got a rush of these: Sep 8 12:37:07 goretex proftpd: PAM-listfile: Refused user news for service proftpd (Apparently, fail2ban managed to miss those.) This is triggered by pam_listfile, which is used by proftpd (and other FTP daemons) to block users listed in /etc/ftpusers. Given how lazy I am, I simply wrote a rule for my own particular daemon: ^\w{3} [ :...
2002 Jun 18
3
FINDNEXT problem, w2k and linux smbfs
...echo "Test : $cnt" done /* also java prog I used to test this problem on w2k and Linux */ import java.util.*; import java.io.*; public class SMBtest { public static void main(String args[]) { String directory = args[0]; File orig_dir = new File(directory); File orig_fl[] = orig_dir.listFiles(); int orig_len = orig_fl.length; int cnt = 0; int er_cnt = 0; do { File new_dir = new File(directory); File new_fl[] = new_dir.listFiles(); int new_len = new_fl.length; cnt ++; if (new_len != orig_len) { er_cnt ++; System.out.print(" new:" + new_len + &qu...
2015 Mar 03
3
Rebuilding SIS attachment links from log
This seems simple enough...I'm just not script wizard. If someone can throw together a starting point I can test and tweak it from there. It seems to me: 1. Read /var/mail/mail.err or specified logfile 2. For each "failed: read(/var/mail/attachments/aa/bb/attachmentHash-userHash" line, a. Confirm /var/mail/attachments/aa/bb/hashes/attachmentHash exists i. If
2007 Apr 05
1
Problem installing rgdal on Mac OS X
...b -lgdal -lproj -L/Library/Frameworks/R.framework/Resources/lib/ppc -lR -dylib_file libRblas.dylib:/Library/Frameworks/R.framework/Resources/lib/ppc/libRblas.dylib /usr/bin/libtool: unknown option character `m' in: -macosx_version_min Usage: /usr/bin/libtool -static [-] file [...] [-filelist listfile[,dirname]] [-arch_only arch] [-sacLT] Usage: /usr/bin/libtool -dynamic [-] file [...] [-filelist listfile[,dirname]] [-arch_only arch] [-o output] [-install_name name] [-compatibility_version #] [-current_version #] [-seg1addr 0x#] [-segs_read_only_addr 0x#] [-segs_read_write_addr 0x#] [-seg_add...
2016 Feb 26
0
Anyone know whats up with wiki?
...Special Pages wiki page anymore > (and they used to be): > > _ Special Pages -> Lists of pages -> Pages linking to disambiguation > pages > > ( Special:Disambiguations ) > > _ Special Pages -> Media reports and uploads -> File path > > ( Special:ListFiles ) > > _ Special Pages -> High use pages -> Most linked-to templates > > ( Special:MostLinkedTemplates ) > > > 3_ Additionally, the current layout of the Special Pages wiki page > seems to be one column of links (under each section / subtitle of the > page)...
2016 Mar 06
0
Anyone know whats up with wiki?
...es wiki page anymore > (and they used to be): > > _ Special Pages -> Lists of pages -> Pages linking to disambiguation > pages > > ( Special:Disambiguations ) It is there, now. > _ Special Pages -> Media reports and uploads -> File path > > ( Special:ListFiles ) It is there, now. > _ Special Pages -> High use pages -> Most linked-to templates > > ( Special:MostLinkedTemplates ) Do you use this? It's proving difficult to track down. > 3_ Additionally, the current layout of the Special Pages wiki page > seems to be one co...