similar to: performing script on multiple files

Displaying 20 results from an estimated 10000 matches similar to: "performing script on multiple files"

2010 Sep 27
3
calculating mean and s.d. from a two-column table
I have a two-column table as follows where age is in the 1st column and the number of individuals is in the 2nd. age;no 1;21 2;31 3;9 4;12 5;6 Can I use mean() and sd() to calculate the mean and standard deviation from this or do I have to manually multiplicate 21*1+31*2 etc. / N?
2011 Feb 28
2
typecasting a function from character to double
Hello, I try to plot a number of functions that are given by a textfile. This file looks like this: ---- (1+s) / (1+k) ; (1+(2*s)^2) / (1+k)^2 ; etc etc. ---- I import these functions into R with the 'readLines' command. This creates a table whose elements contain the conditions as character strings. I want to generically plot the functions (there are many) while varying k, but the type
2011 Jan 30
1
Extract subsets of different and unknown lengths from huge dataset
Dear prospective reader, I apologize for posting my problem but I've just no idea how to go on by processing this huge (over 70 MB) dataset. Thank you in advance for any help or comment! I do appreciate it! My textfile contains 1 column of interest (numbers/values only). The overall issue is to extract 'events', starting points of which are defined by at least 24 preceding values
2007 Jan 24
3
Capturing output from external executables, in windows
Hi, Any help on the following would be much appreciated I wish to capture the output (currently going to console) from an external executable. The executable is successfully run using system("program -switch ") and the output printed to the DOS console. How do I capture this output? I have tried redirecting the output to a text file, and then reading this in
2011 Apr 29
1
Regression Summary for a List
Hi, I am trying to run a regression on two matrices with 10 columns. I have been able to run the regression with the following code: fit=list() for(i in 1:10) { fit[[i]]=lm(monret[,i]~janret[,i]) } However, I can't get the regression to spit out more than the coefficients (summary(fit) does not work). I really need the full summary for each of the 10 regressions, including the R-squared
2002 Nov 22
2
Need help with pipe()
Hello. I have an R program that calls gawk (GNU Awk 3.06 for Windows) from within pipe() to preprocess a large file before it is read into a data frame with read.table(). I've recently upgraded from Win98SE to WinXP, and have also upgraded from R1.5.0 to R1.6.1 over the past month or so. This program worked before the upgrade(s), but now fails. I observe the following sort of behavior with
2003 Jun 12
9
Programcode and data in the same textfile
I have the following problem. It is not of earthshaking importance, but still I have spent a considerable amount of time thinking about it. PROBLEM: Is there any way I can have a single textfile that contains both a) data b) programcode The program should act on the data, if the textfile is source()'ed into R. BOUNDARY CONDITION: I want the data written in the textfile in exactly
2001 Dec 19
1
combine
hello there, I ` m a newbie in R so please excuse my maybe simple question! I have several (the number of the files changes) textfiles. Each textfile contains one column with 3 rows (3 numerical values). I want to combine each file with another file and create new textfiles which then contain 2 columns with 3 rows. How can I do this in R? Do I have to use cbind? How Do I use cbind for my
2003 Jul 15
4
(no subject)
Hi I got a problem with creating a textfile: how can I create a textfile, which has a headline like: #data1 1 2 3 4 5 6 7 8 the problem is, how to bind text and matrix, so that the "read.table"-function will ignore the text and read the numbers. Thank you for help Michael -- 2
1998 Oct 28
2
W95 and no update from samba shares
Hi, i have a annoying problem that drives me crazy. We have set up a Digital/Unix box with samba and the clients (W95) can mount the shares from this box. On the Unix side we create a textfile which will be periodically (or not) appended with new data. A Application on the W95 side reads this file. The Problem is, that the textfile has new lines, the Application don't see them !!! To
2005 Feb 19
2
I have a odd question...
Hi all. I am going to do a simple "voting application" for a radiostation. The idea is to have listeners call in to vote on songs. What I want to do is to take a phonenumer for each song and present the result on a simple webpage. Eg. To vote on song number one, call 555-1111 To vote on song number two, call 555-2222 etc etc. When the listener calls in, a playback tells him:
2010 Mar 16
1
nested looping functions and dataframes
Hey All, So, I am confused how exactly to use nesting loop functions in R to spit out data frames. I've managed to create a working function for my data set that generates a data frame for a given set of Year i and Location j; but how would I do it for all Years and Locations? Here is my working function: test<-function(i,j){ a<-x[which(x$Year==i & x$Location==j),]
2020 May 05
2
Windows link in linux share...
Well, I just did a dirty test: * mklink link.txt "textfile.txt" * mklink /D DIrLink "Directory" * copied it to a samba share via Explorer (drag and drop). * copied it to a Windows share via Explorer (drag and drop). In both cases, it copied the contents of "textfile.txt" as "link.txt", definitely not a symlink (windows or otherwise). Same with
2011 Oct 05
1
fgrep with caret (^) meta-character in system() call
Hi there, I would like to use my linux system's fgrep to search for a text pattern in a file. Calling system with system("fgrep \"SearchPattern\" /path/to/the/textFile.txt") works in general, but I need to search for the search pattern at the beginning of the line. The corresponding shell command fgrep "^SearchPattern" /path/to/the/textFile.txt
2014 Aug 26
2
Fn textfile background
Hello, In doc/menu.txt: "F1 textfile [background]" I am trying the second optional parameter using 640x480 x 4bits color depth png's. Should I be using a different file format? Or a different color depth? Or specific colors? Which versions are supposed to support the second optional parameter, "background", from menu.c32? I have tried (and failed) with (menu.c32)
2009 Apr 17
2
Manipulate single line in textfile
Hello all, Is it possible to modify a single line in a textfile? I know it is possible to load the whole text file, do the change, and save this as a new file. However, this is not practical in my case, because the document is huge and cannot be fully loaded in R. Any idea? Best, Guillaume
2014 Jun 17
2
No es un problema de tm tienes doc.corpus vacío
No es un problema de tm ni de SnowfallC ni de mcapply (por el path utilizas linux, en windows mcapply según el manual no va bien) No defines bien los objetos que pasas. Pasas doc.corpus en lugar de corpus ( o asignas a corpus en lugar de a doc.corpus) . Depura los programas cuando salga un error de objeto, como te pone en el Error que pasas . Temporalmente lo tienes arreglado en
2014 Aug 26
3
Fn textfile background
> On 08/25/2014 07:49 PM, Ady wrote: > > Hello, > > > > In doc/menu.txt: > > "F1 textfile [background]" > > > > I am trying the second optional parameter using 640x480 x 4bits color > > depth png's. > > > > Should I be using a different file format? > > Or a different color depth? > > Or specific colors? >
2008 Sep 04
1
text file imported incorrectly
Dear R-users, When I tried to import a text file (tab delimited) which has 2000+ rows with the following command (With the importData in S, it works though), x <- read.table(textfile, sep= "\t", skip=5, stringAsFactors=F) I received the following warning message: Error in scan(file, what, nmax, sep, dec, quote, skip, nlines, na.strings,: number of items read is not a multiple of
2007 Nov 26
3
xm top
Hello everybody! I´d like to know where "xm top" gets its information from. I want to get those informations (cpu-load, mem etc. from the domUs) and display them with php in a browser. So are the informations stored and updated in a textfile or something like that? Can anybody help me with this? Regards Alexandros _______________________________________________ Xen-users mailing