search for: 4,6

Displaying 20 results from an estimated 381 matches for "4,6".

Did you mean: 1,6
2008 Oct 14
4
request: How to ignore columns having zero sums
Dear friends I have an array consist of r-rows and c-columns e.g. x=c(1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,0,0,0,0,0,0,0,0); x1=array(x, dim=c(4,6)) output is > x1 [,1] [,2] [,3] [,4] [,5] [,6] [1,] 1 2 3 4 0 0 [2,] 1 2 3 4 0 0 [3,] 1 2 3 4 0 0 [4,] 1 2 3 4 0 0 How can i ignore columns having zero sums? Help in this r...
2019 Sep 04
1
[PATCH v3 7/7] drm/vram: fix Kconfig
...++ drivers/gpu/drm/hisilicon/hibmc/Kconfig | 3 ++- drivers/gpu/drm/mgag200/Kconfig | 2 ++ drivers/gpu/drm/vboxvideo/Kconfig | 2 ++ 6 files changed, 10 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/Kconfig b/drivers/gpu/drm/Kconfig index 1be8ad30d8fe..cd11a3bde19c 100644 --- a/drivers/gpu/drm/Kconfig +++ b/drivers/gpu/drm/Kconfig @@ -168,8 +168,6 @@ config DRM_TTM config DRM_VRAM_HELPER tristate depends on DRM - select DRM_TTM - select DRM_TTM_HELPER help Helpers for VRAM memory management diff --git a/drivers/gpu/drm/ast/Kconfig b/drivers/gpu/drm/ast...
2012 Feb 13
2
Deleting rows and columns containing NA's and "" only
...es but here is the R output of a test data set read in with read.xls > t1 A B X D X.1 X.2 1 test 1 NA NA 2 <NA> asd NA asdasd NA 3 NA asdasd NA 4 NA NA NA t1[1,2], t1[4,5] and t1[4,6] are NA in text form in the excel sheet. I don't understand why in the first column it is <NA> while in the last two is not. I basically want to get rid of column 5 and 6 and row 4 as they do not...
2008 Oct 16
4
counting the frequencies of a vector
Hi, Is there a function which counts the frequencies of the occurence of a number within an interval? for example I have this vector: x <- c(1, 3, 1.2, 5, 5.9) and I want a vector that gives me the frequencies within an interval of 2, beginning at 0 (so the intervals are 0-2, 2-4, 4-6 and so on) so I get these frequencies: 2, 1, 2 Which functions do I have to use for this purpose?
2008 Sep 22
4
sort a data matrix by all the values and keep the names
Dear all, If I have a data frame x<-data.frame(x1=c(1,7),x2=c(4,6),x3=c(8,2)): x1 x2 x3 1 4 8 7 6 2 I want to sort the whole data and get this: x1 1 x3 2 x2 4 x2 6 x1 7 x3 8 If I do sort(X), R reports: Error in order(list(x1 = c(1, 7), x2 = c(4, 6), x3 = c(8, 2)), decreasing = FALSE) : unimplemented type 'list' in '...
2009 Mar 31
1
Lomb periodograms
...y spaced time series has two points removed, one at either side of a single data point (thus making an irregularly spaced time series), a spectrum with a very large peak at the highest frequencies is produced. An example of this is shown below: a <- runif(100) x <- 1:length(a) a <- a[-c(4,6)] x <- x[-c(4,6)] spec.ls(x=x, y=a, fast=FALSE, taper=0) Does anyone know why this is? Thank you very much in advance for any help you can give me with this issue. Best regards, Bernardo
2012 Jun 13
1
Indexing Grouped Data
I need help in indexing grouped data. In this excample (df1 data), the first child had a first immunization at age 2. The second child had the first, second and third immunization at age 5,10, and 12, the third child had first and second immunization at age 4 and 6 and the fourth child had the first immunization at age 2. I have df1 and I need to create df2 with and "ind' variable that indicate if the immunization is first, second or third. Note that the data is not balanced but is sorted such that the fisrt observation (of an individual) is th...
2014 Dec 17
1
[PATCH 01/10] core: Split out UFO6 support
On Wed, 2014-12-17 at 13:20 -0500, Vladislav Yasevich wrote: > Split IPv6 support for UFO into its own feature similiar to TSO. > This will later allow us to re-enable UFO support for virtio-net > devices. [...] > diff --git a/include/linux/skbuff.h b/include/linux/skbuff.h > index 6c8b6f6..8538b...
2014 Dec 17
1
[PATCH 01/10] core: Split out UFO6 support
On Wed, 2014-12-17 at 13:20 -0500, Vladislav Yasevich wrote: > Split IPv6 support for UFO into its own feature similiar to TSO. > This will later allow us to re-enable UFO support for virtio-net > devices. [...] > diff --git a/include/linux/skbuff.h b/include/linux/skbuff.h > index 6c8b6f6..8538b...
2009 Sep 30
3
A point in a vector?
Dear list, I have a strange requirement .... I have a vector, for example v<- c(0,0,0,0,1,2,4,6,8,8,8,8). I have a value,for example x<- 4.8. I would like to understand in which sub interval of v is x. In this case, v would be in the sub interval [4,6] that is in the subinterval starting from element j=7 to the element j+1=8. Can we do that with an R command? Regards -- Corrado To...
2012 Oct 15
3
Referring to matrix elements by name, iteratively
...;, "218", "1162", "1323", "1338", "1709" ), c("86", "90", "185", "196", "209", "210", "215", "216", "217", "218"))) #I know I can refer to element [4,6] in two ways, with the index, or with the name > mat[4,6] [1] 0.0625 > mat["196","210"] [1] 0.0625 But I want to use cwaves[4] and cwaves[10] to get the name, because this is part of an iteration through thousands of IDs. This didn't work, of course, because it tr...
2006 Mar 20
1
Who is using the jitter buffer?
Jean-Marc Valin <Jean-Marc.Valin@USherbrooke.ca> wrote: > > > I would think you might also do better if you interleaved packets when > > you did this: instead of sending packets like this: [0,1] [2,3] [4,5] > > [6,7], send them like this: [0,2] [1,3] [4,6] [5,7] In this way, if one > > packet is dropped you don't lose two consecutive voice frames. > > No, but you make the latency even worse. I think 01, 23, 45, ... is > still probably best. How about a compromise then:...
2005 May 05
2
question about subset
Dear R users: I have a quick question: is there any way to get a subset of a data frame with the ordered indexes or without these indexes? example: mydata<- data.frame(A=seq(1,10), B=c(-5,2,-4,6,-8,-9,2,5,7,0)) subset(mydata, B>0)   A B 2 2 2 4 4 6 7 7 2 8 8 5 9 9 7 I would like to obtain this:   A B 1 2 2 2 4 6 3 7 2 4 8 5 5 9 7 or this   A B   2 2   4 6   7 2   8 5   9 7 I think this is possible but I dont know how... any sugestion? thanks jose silva [[alternative HTML versio...
2006 Mar 20
2
Who is using the jitter buffer?
...ets in one UDP packet. While I'm not > sure, I do believe the jitter buffer would probably benefit from > knowing that packets always come in pairs. I would think you might also do better if you interleaved packets when you did this: instead of sending packets like this: [0,1] [2,3] [4,5] [6,7], send them like this: [0,2] [1,3] [4,6] [5,7] In this way, if one packet is dropped you don't lose two consecutive voice frames. -SteveK
2010 Feb 17
1
Package or function for selecting matched pairs?
...them to condition within each pair. I would like to identify, for each course, the one that best matches it, and quantify how well it matches. Here is a much simpler data set for purposes of illustration: ED <- data.frame(course = letters[1:5], level=factor(c(100, 100, 200, 300, 200)), size = c(44, 12, 23, 124, 30), rating = c(4,5,5,3,5)) > > course level size rating 1 a 100 44 4 2 b 100 12 5 3 c 200 23 5 4 d 300 124 3 5 e 200 30 5 Basically I want a function that tells me that courses c and e "match" s...
2009 Jul 30
4
truncating values into separate categories
Hi all, Simple question which i thought i had the answer but it isnt so simple for some reason. I am sure someone can easily help. I would like to categorize the values in NP into 1 of the five values in "Per", with the last category("4") representing values >=4(hence 4:max(NP)). The problem is that R is reading max(NP) as multiple values instead of range so the lengths of the labels and the breaks are not matching. Suggestions? Per <- c("NA", "1", "2", "3","4") NP=c...
2006 Sep 13
1
reshaping a dataset
...he SAS equivalent (not shown, don't want to bore you, but available on request), except that I need zeros when prey types are absent from a stomach instead of NAs, a problem for which I only have a shaky solution at the moment: 1) creation of a dummy dataset: ####### nbpc <- rep(c(20,34), c(110,90)) trip <- c(rep(1:3, c(40, 40, 30)), rep(1:2, c(60,30))) set <- c(rep(1:4, c(10, 8, 7, 15)), rep(c(10,12), c(25,15)), rep(1:3, rep(10,3)), rep(10:12, c(20, 10, 30)), rep(7:8, rep(15,2))) depth <- c(rep(c(100, 150, 200, 250), c(10, 8, 7, 15)), rep(c (100,120), c(25,1...
2010 Oct 19
5
For-loop dummy variables?
Hi everyone, I've got a dataset with 12,000 observations. One of the variables (cleary$D1) is for an individual's country, coded 1 - 15. I'd like to create a dummy variable for the Baltic states which are coded 4,6, and 7. In other words, as a dummy variable Baltic states would be coded 1, else 0. I've attempted the following for loop: dummy <- matrix(NA, nrow=nrow(cleary), ncol=1) for (i in 1:length(cleary$D1)){ if (cleary$D1 == 4){dummy[i] = 1} else {dummy[i] = 0} } Unfortunately it generates...
2007 Sep 03
2
[git patch] minor fixes
...ibc/strtox.c | 1 + usr/klibc/userdb/getgrgid.c | 2 ++ usr/klibc/userdb/getgrnam.c | 2 ++ usr/klibc/userdb/getpwnam.c | 2 ++ usr/klibc/userdb/getpwuid.c | 2 ++ usr/klibc/usleep.c | 1 + 16 files changed, 37 insertions(+), 0 deletions(-) create mode 100644 klcc/.gitignore create mode 100644 scripts/basic/.gitignore create mode 100644 usr/include/klibc/.gitignore -- maks commit 327eb168ff4bedd40d9f77e8dcf465df4eede7ba Author: maximilian attems <max at stro.at> Date: Mon Aug 27 01:37:00 2007 +0200 [klibc] qsort, sleep, strntoumax, s...
2012 May 15
2
pass objects into "..." (dot dot dot)
...I'm working with this parameter list and function: interval_intersection(x, ..., check_valid = TRUE) To illustrate... This works and I get the expected interval: library('intervals') # create individual Intervals objects z = Intervals(c(1,10)) y = Intervals(c(5,10)) x = Intervals(c(4,6)) > interval_intersection(x,y,z) Object of class Intervals 1 interval over R: [5, 6] ...but at run time I don't know how many Intervals objects I will have so I can't list them explicitly like this "x,y,z". So I build a matrix of Intervals (per the package manual) and the fu...