search for: shorter

Displaying 20 results from an estimated 2479 matches for "shorter".

2003 Jul 31
1
help with tapply and weighted.mean
...data frame with 'weights' in one of the columns. I need to compute weighted mean on another column other factor variable and i am trying to: res<-tapply(data$k,list(data$model),weighted.mean,w=data$w,na.rm=T) and i get: Warning messages: 1: longer object length is not a multiple of shorter object length in: x * w 2: longer object length is not a multiple of shorter object length in: x * w 3: longer object length is not a multiple of shorter object length in: x * w 4: longer object length is not a multiple of shorter object length in: x * w 5: longer object length is not a multipl...
2011 Jan 27
3
how to divide each element of a matrix by a specific value per column
...nction, x) [,1] [,2] [,3] [,4] [,5] [1,] 1 7.0 13.0 19.0 25.0 [2,] 1 4.0 7.0 10.0 13.0 [3,] 1 3.0 5.0 7.0 9.0 [4,] 1 2.5 4.0 5.5 7.0 [5,] 1 2.2 3.4 4.6 5.8 [6,] 6 12.0 18.0 24.0 30.0 Warning messages: 1: In data/ind : longer object length is not a multiple of shorter object length 2: In data/ind : longer object length is not a multiple of shorter object length 3: In data/ind : longer object length is not a multiple of shorter object length 4: In data/ind : longer object length is not a multiple of shorter object length 5: In data/ind : longer object len...
2004 May 20
2
ifelse when test is shorter than yes/no
Hi, It turns out that the 'test' vector in ifelse(test, yes, no) is not recycled if it is shorter than the other arguments, e.g. > ifelse(TRUE, seq(10), -seq(10)) [1] 1 Is there any particular reason it is not recycled? If there is one indeed a warning message might be in order when someone calls ifelse with a shorter 'test'. This is R1.8.1 on RH-7.3 Thanks, Vadim [[altern...
2010 Nov 03
3
longer object length is not a multiple of shorter object length
Hi folks, I'm following An Introduction to R http://cran.r-project.org/doc/manuals/R-intro.html#R-and-statistics to learn R. Coming to; 2.2 Vector arithmetic > v <- 2*x + y + 1 Warning message: In 2 * x + y : longer object length is not a multiple of shorter object length What does it mean? How to rectify it? Please help. TIA B.R. Stephen L
2007 Oct 04
5
combining vectors on unequal length
If I have two vectors X<-1:10 Y<-1:5 When I combine them using cbind, the shorter one is repeated and both are made of the same length. Is there a methods that does this without duplicating the shorter one. I want to use this to store the data back to a file. Thanks ../Murli [[alternative HTML version deleted]]
2009 Mar 03
1
SPSS data import: problems & work arounds for GSS surveys
...ains duplicate label for value 99.9 for variable MASEI 7: In read.spss("gss-pspp.sav", to.data.frame = T) : gss-pspp.sav: File contains duplicate label for value 99.9 for variable SPSEI 8: In xi >= z[1L] | xi <= z[2L] | xi[xi == z[3L]] : longer object length is not a multiple of shorter object length 9: In xi >= z[1L] | xi <= z[2L] | xi[xi == z[3L]] : longer object length is not a multiple of shorter object length 10: In xi >= z[1L] | xi <= z[2L] | xi[xi == z[3L]] : longer object length is not a multiple of shorter object length 11: In xi >= z[1L] | xi <= z[2...
2005 Apr 18
4
longer object length, is not a multiple of shorter object length in: kappa * gcounts
Hi, I was using a density estimation function as follows: > est <- KernSmooth::bkde(x3, bandwidth=10) When setting bandwidth less than 5, I got the error "longer object length, is not a multiple of shorter object length in: kappa * gcounts ". I wonder if there is anybody who can explain the error for me? Thanks! Hui
2005 Jun 07
3
Polycom Phones & shorter than /24 netmasks
Has anybody tried to use a Polycom phone (I have 500s and 600s) with a netmask shorter than /24? (A network bigger than 255.255.255.0). We've run out of IPs in our initial /24 network, and I'd like to expand it to 255.255.248.0. When I set it to 255.255.248.0 I can ping the phone while the bootloader has control. As soon as the SIP application starts, I stop getting ping res...
2010 Dec 07
2
longer object length is not a multiple of shorter object length
In datamatrix[, "y"] == datamatrix[, "y"][-1] : longer object length is not a multiple of shorter object length out = c(FALSE,datamatrix[,'y'] == datamatrix[,'y'][-1]) and I do not know why I get that error, the resulting out matrix is somehow one row larger than datamatrix... all I try to do is filter matrix by dropping rows where [,'y'][-1] == [,'y'][+1] --...
2006 Apr 27
1
Comparing two time series?
I have got pairs of time series, where one usually is shorter (n typically about 5400) than the other (n typically about 52000). I would like to calculate the ccf for these series, but I haven't found a smart way to let the shorter "slide" along the longer one in steps. Manually splitting the longer series into shorter ones of the same length a...
2008 Mar 13
2
How to cbind or rbind different lengths vectors/arrays without repeating the elements of the shorter vectors/arrays ?
Hi, How to cbind or rbind different lengths vectors/arrays without repeating the elements of the shorter vectors/arrays ? > cbind(1:2, 1:10) [,1] [,2] [1,] 1 1 [2,] 2 2 [3,] 1 3 [4,] 2 4 [5,] 1 5 [6,] 2 6 [7,] 1 7 [8,] 2 8 [9,] 1 9 [10,] 2 10 [[alternative HTML version deleted]]
2010 Nov 22
2
Making a line in a legend shorter
Hello, I am putting a legend with lines in a line plot and I would like to make the lines in the legend shorter. Does anybody knows how to do this? Thank you Felipe Parra [[alternative HTML version deleted]]
1998 May 25
0
WG: FileListBox with VisualBasic 5.0 displays only files if direc toryname is shorter than 9 character
Hello, Sorry, there was an mistake in my previous mail. FileListBox with VisualBasic 5.0 (32Bit) and NT4.0SP3 displays only files if directoryname is shorter than 9 character. I am using Samba1.9.18.p3. The problem doesn't occur if the connected services is on an NT-Plattform. Does anybody know a solution to this problem. Or hasn?t anybody had this problem yet and am I just goofed ? regards Mit freundlichen Gr??en Michael Emrich ____________...
2011 Jul 22
1
cv.glm and "longer object length is not a multiple of shorter object length" error
...es~per_cover+RH* Does it have something to do with the two glms having different numbers of parameters? I'm not sure why it seems okay with what I've done for glm13, but not glm18. Thanks again for any help. *Warning messages: 1: In y - yhat : longer object length is not a multiple of shorter object length* -- View this message in context: http://r.789695.n4.nabble.com/cv-glm-and-longer-object-length-is-not-a-multiple-of-shorter-object-length-error-tp3685622p3685622.html Sent from the R help mailing list archive at Nabble.com.
2008 Jul 17
4
Matching Up Values
...ude values (also real numbers) and in one of the files, column 3 has Population Density values (integers); there is no column 3 in the other file. However, the main difference between these two files is that one has fewer rows than the other. So what I'm looking to do is, 'pad out' the shorter file, by adding in the rows with those that are 'missing' from the longer file (ie. if a particular coordinate isn't present in the shorter file but is in the 'longer/master' file), and having 'zero' as its Population Density value (column C). This should result in the...
2009 Sep 06
2
selecting columns based on values of two variables
...)) This should ideally give me the dyads involving only Denmark, Sweden and Finland, however i get the error message: [1] numa ida numb idb kmdist midist <0 rows> (or 0-length row.names) Warning messages: 1: In is.na(e1) | is.na(e2) : longer object length is not a multiple of shorter object length 2: In `==.default`(ida, c("DEN", "SWD", "FIN")) : longer object length is not a multiple of shorter object length 3: In is.na(e1) | is.na(e2) : longer object length is not a multiple of shorter object length 4: In `==.default`(idb, c("DEN"...
2017 Dec 13
4
Add vectors of unequal length without recycling?
...wbie for R lang. And I recently came across the "Recycling Rule" when adding two vectors of unequal length. I learned from this tutor [ http://www.r-tutor.com/r-introduction/vector/vector-arithmetics ] that: """""" If two vectors are of unequal length, the shorter one will be recycled in order to match the longer vector. For example, the following vectors u and v have different lengths, and their sum is computed by recycling values of the shorter vector u. > u = c(10, 20, 30) > v = c(1, 2, 3, 4, 5, 6, 7, 8, 9) > u + v [1] 11 22 33 14 25 36 17 28...
2017 Nov 12
2
create waveform sawtooth
My tuneR sawtooth wave function generator is broken. When I use the sine function, I get exactly what I expect: a sine wave whose frequency is defined by the freq parameter. In particular, higher frequencies have shorter wavelengths (more cycles per second means shorter waves). When I create a sawtooth wave, the opposite seems to occur: higher frequencies result in longer waves. But that?s not all: as frequencies increase, it appears that wavelengths increase to infinite length, then get shorter again as the wave...
2018 Jan 02
5
Legacy option for key length?
...acturers want to their gear to become obsolete, they want it to exist in their own silos, they want to destroy the opposition.? If I said "embrace, extend, extinguish", everybody here would nod their head.? Our job is to provide a better alternative.? This recent change, which removed shorter keys, could have been done slightly differently and we would continue to be a better alternative. Now, sadly, people have to dig into yesteryear and find a better alternative.? That not only sucks, it creates space for a good alternative that will displace openssh. I think a very good question...
2009 Nov 09
2
Outputing multilple subsets
...a.frame(a,b) #c is the example data num<-c(unique(b)) # I hope to get the subsets c_1.csv,c_2.csv and c_3.csv #Errors for (i in num) { c_num<-c[c$b==num,] write.csv(c_num,file="c:/c_num.csv") } Warning messages: 1: In c$b == num : longer object length is not a multiple of shorter object length 2: In c$b == num : longer object length is not a multiple of shorter object length 3: In c$b == num : longer object length is not a multiple of shorter object length I think the problem should be file="c:/c_num.csv", anybody has ever met this problem? Thanks very muc...