similar to: Average of data files in a directory

Displaying 20 results from an estimated 500 matches similar to: "Average of data files in a directory"

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
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 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]    
2011 Feb 03
0
Need advises on mixed-effect model ( a concrete example)
Dear R-help members, I'm trying to run LME model on some behavioral data and need confirmations about what I'm doing... Here's the story... I have some behavioral reaction time (RT) data (participants have to detect dome kind of auditory stimuli). the dependant variable is RT measured in milliseconds. 61 participants were tested separated in 4 age groups (unblanced groups,
2016 Feb 26
5
Anyone know whats up with wiki?
> Anyway, Wiki is operational, but Dear List: Please report surprises. 1_ At the bottom-center, of each wiki page, there used to be a: "This page has been accessed 'N' times." message, in which 'N' was a number that (I think) comes from setting: $wgDisableCounters = true; Additionally, there used to be a "Special:PopularPages" page, available as an
2012 May 02
0
MCMCglmm priors including phylogeny
Hi all, I'm hoping I might be able to get some help with some issues specifying priors for MCMCglmm. I'm trying to fit a gaussian glmm using MCMCglmm to a data set with two (correlated) response variables. The response variables are both logit-transformed proportions (there are a few reasons why I've chosen these with gaussian error over binomal glmm, which I won't go into).
2012 Apr 25
1
dbench & similar - as a valid benchmark
hi everybody would a tool such as dbench be a valid bechmark for gluster? and, most importantly, is there any formula to estimate raw fs to gluster performance ratio for different setups? for instance: having a replicated volume, two bricks, fuse mountpoint to volume via non-congested 1Gbps or even a volume on single brick with fuse client mountpoing locally what percentage/fraction of raw
2003 Oct 16
2
returning dynamic variable names from function
Within a function I'm assigning dynamic variable names and values to them using the "assign" function. I want to pass back the results but am uncertain how to do this. Basically, my function reads a number of data files and uses the filename of each file as the variable name for a list-to-become-dataframe. I want then to pass all these lists back, but again, the names of the
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
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 Jun 18
3
FINDNEXT problem, w2k and linux smbfs
I have inconsistent directory listing on share mounted on linux from windows 2k. Some time not all files appear in the directory listing. If reading directory listing multiple times (60-200 times) files listed originally would have one or two files missing in one of consecutive lists. The same problem appear as well if you are making backup of Windows files from multiple directories, there are
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(),
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
2016 Feb 26
0
Anyone know whats up with wiki?
On Fri, Feb 26, 2016 at 02:37:58PM +0200, Ady via Syslinux wrote: > > > Anyway, Wiki is operational, but Dear List: Please report surprises. > > 1_ At the bottom-center, of each wiki page, there used to be a: > "This page has been accessed 'N' times." > > message, in which 'N' was a number that (I think) comes from setting: > >
2016 Mar 06
0
Anyone know whats up with wiki?
On 2/26/2016 07:37, Ady via Syslinux wrote: > 1_ At the bottom-center, of each wiki page, there used to be a: > "This page has been accessed 'N' times." > > message, in which 'N' was a number that (I think) comes from setting: > > $wgDisableCounters = true; It is there, now. Sorry, but due to MediaWiki chaos, the statistics are starting fresh from
2009 Mar 26
4
Reading in files with variable parts to names
Dear all, I'm trying to read in a whole directory of files which have two variable parts to the file name: year and month. E.g. comp198604.asc represents April of 1986 - 'comp' is fixed in each case. Years range between 1986 to 1995 and months are between 1 and 12. Just to be clear, there are 12 files associated with each year: e.g. comp198601, comp198602, ... comp198612 through to
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
2011 Sep 12
1
[PATCH] febootstrap: Use contents of installed Debian packages instead of downloading and unpacking them.
--- src/febootstrap_debian.ml | 65 +++++++++++++++++++++++++++++++++++++------- 1 files changed, 54 insertions(+), 11 deletions(-) diff --git a/src/febootstrap_debian.ml b/src/febootstrap_debian.ml index 23f3593..bb10f15 100644 --- a/src/febootstrap_debian.ml +++ b/src/febootstrap_debian.ml @@ -28,6 +28,9 @@ open Febootstrap_cmdline (* Create a temporary directory for use by all the
2016 Feb 24
5
Anyone know whats up with wki?
On Tue, Feb 23, 2016 at 1:38 PM, Shao Miller via Syslinux <syslinux at zytor.com> wrote: > I don't think the MySQL daemon is running. I'm looking around for someone > who can help. - Shao > > P. S. No, I don't like scrolling to read what's most recent. Top-posting > forever. Just kidding. Nicer clients can fold. I know GMail's web interface is but one
2006 Nov 03
1
question of one matrix column being treated as list rather than vector
Hi, I have one matrix derived from my function. It is as following: Browse[1]> each.uaa.data [,1] [,2] [1,] 33 152.3530 [2,] 33 264.7059 [3,] 51 583.3333 [4,] 33 323.3333 [5,] 50 292.549 [6,] 33 300 [7,] 56 104.1176 [8,] 52 246.6667 [9,] 53 242.5490 [10,] 33 212.9412 when I tried to get each.uaa.data[,2], it gave me a list, when I expect a vector so that