Displaying 20 results from an estimated 200 matches similar to: "read multiaple files within one folder"
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
2004 Jul 13
1
[LLVMdev] Global data order
Hello,
given
%TestArrayPtr = global %struct.test* getelementptr (
[10 x %struct.test]* %TestArray, ..........
%TestArray = weak global [10 x %struct.test] zeroinitialize
my backend produce data declaration in the same order, so TestArrayPtr refers
to TestArray before TestArray itself is defined.
Is there a standard way to get the right ordering. I wrote my own code, but
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(),
2010 Oct 20
0
[Rpy] "lapack routines cannot be loaded" in Ubuntu Linux 9.10
On 20 October 2010 at 09:57, Aman Thakral wrote:
| Thanks for your reply. I just created a link to
| /usr/local/lib/R/lib/libRlapack.so in /usr/local/lib. It works now.
| I'm just curious, is this the "right" way to do it? Is there a better way?
I am coming to this a little late but ... it is a band aid to a self-inflicted wound.
You only have libRlapack because you built R
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?
/(_)\
^
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
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
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
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
2005 Nov 27
2
'For each file in folder F do....'
Hello,
I have 2700 text files in a 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
2003 Apr 10
1
sshd and pam , conversation
I have setup openssh with hostbased
authentication on linux (redhat).
I want to allow/deny users based on a
listfile, so i have a PAM module that
does that, and it runs in the "account"
section (oposed to pam_listfile.so,
that uses the "auth" section - it wouldt
work because with hostbased authentication
openssh ignores the "auth" section).
It's working
2009 Feb 13
2
odfWeave & prettyR
Hello,
I've been trying to use odfWeave and prettyR packages to create documents with both text and graphs, but so far I
haven't been very lucky...
With the function R2html () in prettyR package, when I try to use a source file, which works perfectly if I run it
directly form R using "source("file")",
it works for the first part and then it makes a mess, i guess
2006 Mar 03
1
DO NOT REPLY [Bug 3579] New: Add support for pregenerated directory listings
https://bugzilla.samba.org/show_bug.cgi?id=3579
Summary: Add support for pregenerated directory listings
Product: rsync
Version: 2.6.7
Platform: All
OS/Version: All
Status: NEW
Severity: enhancement
Priority: P3
Component: core
AssignedTo: wayned@samba.org
ReportedBy: robe@amd.co.at
2002 Feb 13
2
Problem with using both pam_listfile to deny logins and pubkey authentication
Hi,
I'm trying to use pam_listfile.so to deny logins from all others but few
users (names in /etc/loginusers). With password authentication it works
fine, but with public key authentication OpenSSH lets in users whose
names arent't in /etc/loginusers. AllowUsers in sshd_config does what
one would expect.
I'm using OpenSSH-3.0.2p1 on Debian testing (package version
1:3.0.2p1-6)
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
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]
2012 Mar 01
2
'break' function in loop
Dear R helpers,
I have some difficulties in using ''break'' function with loop, and the followings are my script. What I try to do is (1) permute ''or'' first; (2) doing t-test if this ''or'' pass criteria 1 (k=1); (3) end the loop when I get 10 permutations; (4) redo everything again but this time use criteria 2 (k=2) (I have more criteria 1:n).