Displaying 20 results from an estimated 1000 matches similar to: "batch jobs question"
2007 Jun 19
1
A question about plots and lists in functions
R-helpers:
I tried googling and couldn't find anything.
I have a function I am sourcing into R that does some calculations to
generate a simulated dataset. I currently have a a list set up to store
the outputs from the function and a plot of one of them (a set of
ordered pairs) like this:
foo<-function(x,y,z){
## do some work here ##
list(x=x,y=y,z=z,output1=output1,output2=output2,
2008 Feb 13
4
rolling sum (like in Rmetrics package)
Hello, I'm new to R and would like to know how to create a vector of "rolling
sums". (I have seen the Rmetrics package and the rollMean function and I
would like to do the same thing except Sum instead of Mean.) I imagine
someone has done this, I just can't find it anywhere.
Example:
x <- somevector #where x is 'n' entries long
#what I would like to do is:
x1
2010 Dec 23
5
Writing a single output file
Dear R helpers!
Let me first wish all of you "Merry Christmas and Very Happy New year 2011"
"Christmas day is a day of Joy and Charity,
May God make you rich in both" - Phillips Brooks
## ----------------------------------------------------------------------------------------------------------------------------
I have a process which generates number of outputs. The R code
2007 Mar 19
1
Need to Run Multiple Winapps At The Same Time
In another thread, a user was told to execute: wine 'prog1 prog2' to
run them both at the same time. I haven't been able to figure out how
to do that with my situation. I tried this
wine "'c:/Program Files/wdisplay/WeatherD.exe' 'c:/Program Files/
Google/adwords_editor.exe'"
but got this:
wine: cannot find ''c:/Program
2008 Mar 07
3
Error
Hello!
I need some help, because I don't know how this error means: Error:
variables ?Output1?, ?Output2?, ?Output3?, ?Output4?, ?Output5? were
specified with different types from the fit
Execution halted
Can you help me?
Thank You
2012 Oct 11
2
Repeating a series of commands
I'm trying to figure out how to repeat a series of commands in R and have the
outputs added to a dataframe after each iteration.
My code starts this way...
a<-read.csv("File1.csv")
b<-read.csv("File2.csv")
2007 Jun 27
1
Another loop avoidance question.
Hi
I want to sum over one of the dimensions of a n x k1 x k2 array in
which each column is the product of the corresponding columns from two
matrices with dimensions n x k1 and n x k2. I can see two approaches:
a loop on k1 and a loop on k2. But I cannot figure a solution that
avoids the loop? Is it possible? (I don't refer to apply or lapply etc
either as they are just hidden loops so,
2010 Nov 15
3
merge two dataset and replace missing by 0
Hi r users,
I have two data sets (X1, X2). For example,
time1<-c( 0, 8, 15, 22, 43, 64, 85, 106, 127, 148, 169, 190 ,211 )
outpue1<-c(171 ,164 ,150 ,141 ,109 , 73 , 47 ,26 ,15 ,12 ,6 ,2 ,1 )
X1<-cbind(time1,outpue1)
time2<-c( 0 ,8 ,15 , 22 ,43 , 64 ,85 ,106 ,148)
output2<-c( 5 ,5 ,4 ,5 ,5 ,4 ,1 ,2 , 1 )
X2<-cbind(time2,output2)
I want to
2008 Jul 21
1
Howto Restart A Function with Try-Error Catch
Hi all,
I have a function - let's call it "myfunction". This function is based
on some random
number generator. Now, once in a while the function will break/crash depending
on the random number it generate inside the function.
To avoid the problem, what I intend to do is the following:
1. Catch the try-error using class.
2. Redo the function if it returns "try-error"
3.
2002 Aug 25
0
External file-attributes plugin for rsync
Recently, with LSM (linux security modules) interface growing stable, it
is becoming easier to implement different access-control systems for
linux. There are already several projects using different approaches to
the access-control problem. Each of them has its own meta-info for each
file. When syncing two hosts which use some security module, one needs to
sync this meta info for each file
2009 Sep 02
2
Average over data sets
Hello,
I have a number of files output1.dat, output2.dat, ... , output20.dat,
each of which monitors several variables over a fixed number of
timepoints. From this I want to create a data frame which contains the
mean value between all files, for each timepoint and each variable.
The code below works, but it seems like I should be able to do the
second part without a for loop. I played
2009 Aug 10
3
how use cat() function?
i want to print in the console and to have an excel file like this
no_GWP NbOfPolicyClass1[0-1000] NbOfPolicyClass2[1000-3000] NbOfPolicyClass3[> 3000]
No_GWPMax=8 NbpolicyClass1=5 NbpolicyClass2=4 NbpolicyClass3 =3
i have do it like this:!!!
data1 <-
2010 Mar 03
1
List of zoo dataframes
Hello,
I have various datasets of zoo time series (merged into single frames
via the "merge" command) such as
date var0 var1 var2 var3
08/07/1996 652.54 0.223922 0.515819 0.502638
08/08/1996 662.59 0.997841 0.000383 0.999806
06/09/1996 655.68 0.901685 0.569763 0.866333
08/10/1996 700.64 0.268855 0.244701 0.329285
08/11/1996 730.82 0.438407 0.501427 0.461374
2011 Jun 29
3
[LLVMdev] specint2000 as external tests
Hi Duncan,
Do you have sources also in
the $LLVM_SRC_ROOT/projects/test-suite/External/SPEC/CINT2000/164.gzip?
The following is content of above directory in my case. I have copied the
CINT2000 sources in this directory manually.
$ls -1 $LLVM_SRC_ROOT/projects/test-suite/External/SPEC/CINT2000/164.gzip
164.gzip.reference_output
164.gzip.reference_output.small
compile_info
compile_parms
2009 May 19
4
nlrwr package. Error when fitting the optimal Box-Cox transformation with two variables
Dear all:
I'm trying to fit the optimal Box-Cox
transformation related to nls (see the code
below) for the demand of money data in Green (3th
Edition) but in the last step R gives the next
error message.
Error en
`[.data.frame`(eval(object$data), ,
as.character(formula(object)[[2]])[2]) :
undefined columns selected.
?Any idea to solve the problem?
Thanks in advance,
2004 Jan 07
4
Ogg checksum thingie needed
I need some sort of utility to calculate a checksum of an Ogg file.
Two differently encoded Ogg:s should give different checksums, but the
same file with different tags should give the same result.
(The serial number doesn't work here, obviously. I need something that
is changed if a bit of the file is lost.)
--
Björn Lindström <bkhl@elektrubadur.se>
http://bkhl.elektrubadur.se/
2015 Aug 22
2
a lld linker script bug
Hi,
Thanks for your patch, Huang. It looks good to me. Just one comment:
can you write a testcase, similar to the others used for linker script
testing, with your example? Alternatively, you can modify
lld/test/elf/linkerscript/sections-with-wildcards.test to test your
case. This will make your patch complete and ready for commit, and
will ensure we do not regress on this bug if this code is ever
1997 Oct 23
0
R-beta: why restart()
Martyn, you write
> I don't think restart() is necessary - it just seems like an invitation to
> bad programming to me.
It's needed when comparing, say, the time to convergence (if at all) of various
iterative processes, for each of a few hundred simulated values. For example one
wants basically
function(data){
summary<-rep(NA,1000)
for(i in 1:1000){
2002 Aug 11
0
Problems installing printerdriver after successful upload to samba-2.2.5
Here is what I do. It gets explained step by step.
At the end of this mail you will find my references used in the text by
[0] and so on.
- starting with initial setup
- getdriverdir NT x86
- uploading files with smbclient prompt; cd W32X86
- addriver
- addprinter
- debian:/scratch/W32X86# rpcclient debian -d 1 -A /scratch/authfile.txt -c
"enumdrivers"
-
2010 Oct 21
4
data.frame query
Hi All,
Apologies for the simplicity of my question, but I would be grateful for any
advice. Thanks
I'm trying to put the output from a for loop into a data frame, however I
have not been successful.
The steps I have taken are:
*R-code:*
>for (k in 1:(nt-1-n0) ){
> n<- n0-1+k
> lam=n/nt
> Q=x[n]
> output1<-data.frame(cbind(k,n,lam,Q))
> output1
> }