Displaying 20 results from an estimated 33 matches for "output2".
Did you mean:
outputs
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 merge X1 and X2 into a big dataset X by time1 and time2 so that
the missing item in output2 will be replace by 0. For example, there is no
output2 when time2=127, then the corresponding output will be 0. Anyon...
2008 Feb 13
4
rolling sum (like in Rmetrics package)
...ion 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 <- x[1:20]
output1 <- sum(x1)
x2 <- x[2:21]
output2 <- sum(x2)
x3 <- ...
ouput <- c(output1, output2, ...)
Thanks,
JV
--
View this message in context: http://www.nabble.com/rolling-sum-%28like-in-Rmetrics-package%29-tp15459848p15459848.html
Sent from the R help mailing list archive at Nabble.com.
2009 Aug 10
3
how use cat() function?
...K[(K[,25]>3000),]
> NbpolicyClass3 <- nrow(class3)
> Output<- "No_GWPMax ,NbpolicyClass1[0-1000],NbpolicyClass2[1000-3000],NbpolicyClass3[>3000]"
> Output <- paste(No_GWPMax ,NbpolicyClass1,NbpolicyClass2,NbpolicyClass3,sep=",")
> cat(Output,file="Output2.csv",fill=TRUE,append=TRUE)
but that doesn't give me the title juste 8 5 4 3
any ideas??
thank you a lot
[[alternative HTML version deleted]]
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
2010 Dec 23
5
Writing a single output file
...ot;, i, ".csv", sep = ""), row.names = FALSE)
}
Depending on value of 'n', I get different output files.
Suppose n = 3, that means I am having three output csv files viz. 'output1.csv', 'output2.csv' and 'output3.csv'
output1.csv
date yield_rate
12/23/2010 5.25
12/22/2010 5.19
.................................
.................................
output2.csv
date yield_rate
12/23/2010 4.16
12/22/2010 4.59
................
2007 Jun 27
1
Another loop avoidance question.
...ises processing time.
cheers
Dave
## Basic paramters
k1=3
k2=2
n=10
m1 = matrix (1:(n*k1), nrow=n, ncol=k1)
m2 = matrix (1:(n*k2), nrow=n, ncol=k2)
## Approach 1: loop on k1
output1 = matrix(0,nrow=n,ncol=k2)
pt1 = proc.time(for (i in 1:k1) output1 = output1 + m1[,i]*m2)
## Approach 2: loop on k2
output2 = matrix(0,nrow=n,ncol=k2)
pt2 = proc.time(for (i in 1:k2) output2[,i] = rowSums( m1*m2[,i] ))
## Same result
sum(output1-output2)
--
David Pleydell
Laboratoire de Biologie Environnementale
USC INRA-EA 3184
Universit? de Franche-Comt?
Place Leclerc F
25030
Besan?on
France
(0033) 0381665763
dpl...
2012 Oct 11
2
Repeating a series of commands
...b$Z=="U",sample(9:10,length(b$Z),replace=TRUE),"")))
b$Z<-as.numeric(b$Z)
This is basically just starting off with a new and partially random data set
every time that then goes through a bunch of other commands (not shown) and
ends with the following outputs saved.
Output1, Output2, Output3, Output4
where each of these is just a single number. My questions is:
1. How do I repeat the entire series of commands x number of times and save
each of the outputs into a structure like this:
Output1 Output2 Output3 Output4
Iteration 1
Iteration 2
It...
2007 Jun 19
1
A question about plots and lists in functions
...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,
plot=plot(output1[,1],output1[,2],type=p));
}
The problem I am having is that when I do
>work<-foo(x,y,z)
>work
it will show the plot, but I would like to be able to repeatedly call it
like I can call the different plots in an lm without having to display
everything else t...
2012 Nov 04
1
structural equations using sem package
...t;, NA,
????????????????????????? "exo -> med", "g2",? NA,
????????????????????????? "med -> endo", "g3", NA
??? ??? ??? ??? ??? ??? ??? "med<->med",NA,1,
??? ??? ??? ??? ??? ??? ??? "endo<->endo",NA,1),? ncol=3,byrow=T)
output2<-sem(path1,covar1,N=400,fixed=c("exo"))
summary(output)
With this i can get the direct effect of exo on endo.
?But? if i want 'med' above to be a latent variable that is identified by a number of variables - in the example below i use just one - do i proceed as follows. ???...
2005 Feb 08
2
batch jobs question
Hi,there
I'm doing some R batch jobs in Unix.
Something like
R <prog1> output1 --save &
R <prog2> output2 --save &
prog1 and prog2 are running at the same time and they are essentially same except it contains different parameter values.
I was wondering if two processes will affect each other? Hopefully they are two independent jobs.
It's a beginner's question and thanks for your help.
C...
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/
2016 Jun 17
1
Re: virt-sparsify changing the apparent-size of files
On Wed, Jun 15, 2016 at 10:20:54AM -0500, libvirt_users@skagitattic.com wrote:
> Hello,
>
> I am curious why when using virt-sparsify the apparent-size of the file
> gets reduced to the actual file size? Is there a way to get the
> apparent-size left as the full size?
>
> In the man page for virt-sparsify it has a section on
> "IMPORTANT NOTE ABOUT SPARSE OUTPUT
2016 Jun 17
1
Re: [libvirt-users] virt-sparsify changing the apparent-size of files
On Wed, Jun 15, 2016 at 10:20:54AM -0500, libvirt_users@skagitattic.com wrote:
> Hello,
>
> I am curious why when using virt-sparsify the apparent-size of the file
> gets reduced to the actual file size? Is there a way to get the
> apparent-size left as the full size?
>
> In the man page for virt-sparsify it has a section on
> "IMPORTANT NOTE ABOUT SPARSE OUTPUT
2016 Jun 22
0
Re: [libvirt-users] virt-sparsify changing the apparent-size of files
...or qcow2 files, the virtual size is not related to the "apparent"
> size, as you can easily prove:
So you are saying when I do the virt-sparsify its converting the image
from raw to cow2?
I studied the man page for virt-sparsify and tried again with
the flag "--format raw" (output2.cow2). This output files looks as I
first expected.
# ls -lrh
total 4.7G
-rw-r--r-- 1 root root 790M Jun 14 22:36 output.qcow2
-rw-r--r-- 1 root root 51G Jun 21 18:34 output2.qcow2
-rw-r--r-- 1 root root 51G Jun 14 22:30 input.qcow2
-rw-r--r-- 1 root root 512M Jun 14 22:30 file.img
# du -sh *
0...
2016 Jun 22
3
Re: [libvirt-users] virt-sparsify changing the apparent-size of files
...are saying when I do the virt-sparsify its converting the image
> from raw to [qcow2]?
No. virt-sparsify will use the same input and output formats, unless
you use the --convert option.
> I studied the man page for virt-sparsify and tried again with
> the flag "--format raw" (output2.cow2). This output files looks as I
> first expected.
>
> # ls -lrh
> total 4.7G
> -rw-r--r-- 1 root root 790M Jun 14 22:36 output.qcow2
> -rw-r--r-- 1 root root 51G Jun 21 18:34 output2.qcow2
> -rw-r--r-- 1 root root 51G Jun 14 22:30 input.qcow2
> -rw-r--r-- 1 root root...
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 t...
2008 Jul 21
1
Howto Restart A Function with Try-Error Catch
...Redo the function if it returns "try-error"
3. Otherwise keep the output of the function.
I'm not sure how to create the above construct.
The code I have below doesn't work:
__BEGIN__
myfunction <- function(the_x) {
# do something
a = list(output1=val1, output2 = val2)
a
}
out <- try(suppressWarnings(myfunction(x)),silent=T)
if (class(out) == "try-error") {
#this clause doesn't seem to "redo"
out <- myfunction(X)
}
else {
ll <- out$output1
}...
2016 Jun 22
0
Re: [libvirt-users] virt-sparsify changing the apparent-size of files
...fy its converting the
> > image from raw to [qcow2]?
>
> No. virt-sparsify will use the same input and output formats, unless
> you use the --convert option.
>
> > I studied the man page for virt-sparsify and tried again with
> > the flag "--format raw" (output2.cow2). This output files looks as
> > I first expected.
> >
> > # ls -lrh
> > total 4.7G
> > -rw-r--r-- 1 root root 790M Jun 14 22:36 output.qcow2
> > -rw-r--r-- 1 root root 51G Jun 21 18:34 output2.qcow2
> > -rw-r--r-- 1 root root 51G Jun 14 22:30 inpu...
2010 Mar 03
1
List of zoo dataframes
...or a function (say, "analysis(specification, inputdata)" ) that runs
some statistical manipulations (regressions, nonlin models, etc. etc.)
on the elements of the zoo data frames. Thus I want to be able to run
(this is pseudo R code):
for (i in 1:3)
{
output1<-analysis(b[1], a[i])
output2<-analysis(b[2], a[i])
}
Thanks in advance for any pointers or help.
Best,
Costas
[[alternative HTML version deleted]]
2011 Jun 29
3
[LLVMdev] specint2000 as external tests
...T/projects/test-suite/External/SPEC/CINT2000/164.gzip
164.gzip.reference_output
164.gzip.reference_output.small
compile_info
compile_parms
exec_info_input1
exec_info_input2
exec_info_input3
exec_info_input4
exec_info_input5
exec_info_input6
exec_info_input7
input1
Makefile
make_src_164.gzip
output1
output2
output3
output4
output5
output6
output7
patched_src
src
Does this look ok to you?
Thanks for your help.
Daya
On Wed, Jun 29, 2011 at 3:05 AM, Duncan Sands <baldrick at free.fr> wrote:
> Hi Daya,
>
> > checking for spec2000 benchmark sources... no, not found in
> > $LLVM...