search for: tempout

Displaying 3 results from an estimated 3 matches for "tempout".

2006 Nov 14
3
the secret (?) language of lists
...ist in the form of a[1], b[1], a[2], b[2], a[3].... In particular, the summary of his question was in reference to lists defined by x <- 5 tempin <- seq(1,1411, by=30) a <- tempin b <- tempin + x I offered the following function everyOther <- function(tempin, x){ tempout <- array(data=NA, dim=length(tempin)*2) tempout[seq(1,length(tempin)*2, by=2)]<-tempin tempout[seq(2,length(tempin)*2, by=2)]<-tempin+x tempout } which did what it was supposed to, and Gavin Simpson offered a similar function. Peter Dalgaard, however, supplied a much more...
2006 Nov 12
7
I think a simple question
I have index ( of a vector ) values of say tempin<-c(1 31 61 91 121 all the way upto 1411) What I want is a function that takes in a number say, x = 5, and gives me an new vector of tempout<-1 6 31 36 91 96 121 126 .......... 1411 1416 This can't be so hard but I can't get it and I've honestly tried. Obviously, tempin + 5 gives me the missing values but I don't know how to interwine them in the order above. Thanks for any help you can provide....
2003 May 08
3
how to write text into a file
Hello, Would somebody tell me how to write the text result into a postscript file? The command postscript() sents only the graphics output into PostScript files. best wishes, Xirui