Displaying 20 results from an estimated 36 matches for "listfiles".
Did you mean:
distfiles
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(),
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
Suppose we have files in one folder file1.bin, file2.bin, ... , and
1460slice(file) with dim of 720 * 360 in directory C:\\PHD\\Climate
Data\\Wind\\ and we want to read them and 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
2012 May 24
6
R does not recognise columns and rows as they are supposed to be
Dear All,
The code given bellow is to extract values of one region and write that to
a text file(there are 365 binary files in the directory).
The problem which I am facing is that all my files are binary with size of
360 rows and 720 columns.
I specified that in this line: file2<-matrix(data=file,ncol=720,nrow=360)
but I got an error : Error in mean(file2[X, Y], na.rm = TRUE) : subscript
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 the...
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-he...
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 o...
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
2007 Jan 30
1
Error message when building a package
I'm trying to build a package. The machine is PowerPC G4 with Mac OS 10.4.8,
and I'm using R2.4.1.
I get "R CMD build roots" working, and it created roots.tar.gz. But I get
the following message when I run "R CMD INSTALL -l ../myrlibrary
roots.tar.gz"
======================================================================
* Installing *source* package 'roots'
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
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 + &quo...
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
Please forgive me for posting this here if it is not appropriate (where
should this question be posed?)?
I am attempting to install rgdal (from source, since there is no binary)
on Mac OS X 10.4.9 on a PowerPC G3 Macintosh. I have R version 2.4.1
(2006-12-18) installed. Following the install directions suggested at:
http://www.sal.uiuc.edu/tools/tools-sum/rgeo/rgeo-detail/map-packages-on-cran
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 col...