similar to: subsetting a matrix by conditions (PR#9082)

Displaying 20 results from an estimated 10000 matches similar to: "subsetting a matrix by conditions (PR#9082)"

2005 Jun 27
2
Cannot choose language for installing (PR#7971)
Full_Name: Jiancang Zhuang Version: R 2.1.1 OS: windows xp Submission from: (NULL) (133.58.102.66) I tried to install R.2.1.1 into my windows xp system. The system is Japanese version. But I set the unicode fonts to be Chinese to for some important programme. No matter how I choose the language during the installation, I always get an R of Japanese version.
2006 Sep 11
2
[HELP] Mutlicast over GRE tunnel
Hi, I got a problem similar to this one (http://mailman.ds9a.nl/pipermail/lartc/2005q4/017614.html), GRE tunnel can forward normal IP packets such as ICMP but failed to tunnel multicast traffics. Here''s the setup: 192.168.20.0/24 LAN-A--------------RtrA-------------RtrB--------------LAN-B 192.168.50.0/24 192.168.60.0/24 RtrA
2019 Apr 22
1
Compress interleaved multi-channels pcm/wav with opus
Hello everyone, I tried to compress audio with opus-1.3.1/src/opus_demo.c recently, which works fine on mono and stereo data . Now I want to compress interleaved 7 channels pcm/wav ( recorded by Microphone array :6mic+ 1reference signal ) with opus, But I have not found an interface that compress multi-channels pcm/wav. 1、Is there a multi-channel compression interface can be used in my case? If
2006 Jan 30
3
Subsetting a matrix without for-loop
Dear R-users, I'm struggling in R in order to "squeeze" a matrix without using a for-loop. Although my case is a bit more complex, the following example should help you to understand what I would like to do, but without the slow for-loop. Thanks in advance, Carlo Giovanni Camarda A <- matrix(1:54, ncol=6) # my original matrix A.new <- matrix(nrow=3, ncol=6) # a new
2017 May 04
12
[PATCH v1] ACPI: Switch to use generic UUID API
acpi_evaluate_dsm() and friends take a pointer to a raw buffer of 16 bytes. Instead we convert them to use uuid_le type. At the same time we convert current users. acpi_str_to_uuid() becomes useless after the conversion and it's safe to get rid of it. The conversion fixes a potential bug in int340x_thermal as well since we have to use memcmp() on binary data. Cc: Rafael J. Wysocki <rjw
2011 Jan 06
4
Creating a Matrix from a vector with some conditions
Hi Suppose we have an object with strings: A<-c("a","b","c","d") Now I do: B<-matrix(A,4,4, byrow=F) and I get a a a a b b b b c c c c d d d d But what I really want is: a b c d b c d a c d a b d a b c How can I do this? thank you A. Dias -- View this message in context:
2006 Jul 06
1
Warning while subsetting using Matrix package
Hello, Could someone please explain the following warning while subsetting in the Matrix package? Thanks, John Thaden, PhD U. Arkansas for Med. Sci. Little Rock AR USA > # In the Matrix package... > library("Matrix") > # ...I had previously created a sparse matrix in triplet form: > str(x) Formal class 'dgTMatrix' [package "Matrix"] with 6 slots ..@ i
2013 Apr 06
1
Multiple subsetting of a dataframe based on many conditions
Hello Everybody, I'm working with a dataframe that has 18 columns. I would like to subset the data in one of these columns, "present", according to combinations of data in six of the other columns within the data frame and then save this into a text file. The columns I would like to use to subset "present" are: * answer (1:4) [answer takes the values 1 to 4] *p.num
2007 Sep 01
2
Can lucene use index generated by ferret?
I found it quite fun to generate index by ferret. However, I had to use lucene now. Can I use the index that I''ve already done by ferret? ps. Lucene 2.2.0 vs Ferret 0.11.4 Thx! -- Posted via http://www.ruby-forum.com/.
2024 Mar 06
2
Question on supporting sendfile()
Hi all, sendfile() could be enabled in NGINX(https://www.sobyte.net/post/2022-08/nginx-send/). It could improves the performance since it could optimize to transfer data to user space. Up to now, sendfile() isn?t supported in OpenSSH yet. Will it be supported in the future? Best Regards Haojian
2017 May 04
0
[PATCH v1] ACPI: Switch to use generic UUID API
On Thu, May 04, 2017 at 12:21:51PM +0300, Andy Shevchenko wrote: > acpi_evaluate_dsm() and friends take a pointer to a raw buffer of 16 > bytes. Instead we convert them to use uuid_le type. At the same time we > convert current users. > > acpi_str_to_uuid() becomes useless after the conversion and it's safe to > get rid of it. > > The conversion fixes a potential bug
2023 May 10
0
[PATCH] vsock: bugfix port residue in server
Hi, thanks for the patch, the change LGTM, but I have the following suggestions: Please avoid "bugfix" in the subject, "fix" should be enough: https://www.kernel.org/doc/html/v4.17/process/submitting-patches.html#describe-your-changes Anyway, I suggest to change the subject in "vsock: avoid to close connected socket after the timeout" On Wed, May 10, 2023 at
2023 May 11
0
[PATCH] vsock: bugfix port residue in server
On Thu, May 11, 2023 at 03:03:24PM +0800, Zhuang Shengen wrote: >Hi Stefano: > >? 2023/5/10 23:23, Stefano Garzarella ??: >>Hi, >>thanks for the patch, the change LGTM, but I have the following >>suggestions: >> >>Please avoid "bugfix" in the subject, "fix" should be enough:
2023 May 11
0
[PATCH net v2] vsock: avoid to close connected socket after the timeout
On Thu, May 11, 2023 at 07:34:30PM +0800, Zhuang Shengen wrote: >When client and server establish a connection through vsock, >the client send a request to the server to initiate the connection, >then start a timer to wait for the server's response. When the server's >RESPONSE message arrives, the timer also times out and exits. The >server's RESPONSE message is
2009 Dec 29
4
subsetting by groups, with conditions
I have a data set similar to this: P1id Veg1 Veg2 AreaPoly2 P2ID 1 p p 1 1 1 p p 1.5 2 2 p p 2 3 2 p h 3.5 4 For each group of "Poly1id" records, I wish to output (subset) the record which has largest "AreaPoly2" value, but only if
2018 Nov 21
2
Subsetting row in single column matrix drops names in resulting vector
Hello here. I'm struggling to understand R's subsetting behavior in couple of edge cases - subsetting row in a single column matrix and subsetting column in a single row matrix. I've read R's docs several times and haven't found answer. Consider following example: a = matrix(1:2, nrow = 2, dimnames = list(c("row1", "row2"), c("col1"))) a[1, ] # 1
2012 Aug 15
1
hidden for() loop subsetting a matrix?
Hi, I am subsetting a matrix thus: test [,1] [,2] [,3] [1,] 1 7 13 [2,] 2 8 14 [3,] 3 9 15 [4,] 4 10 16 [5,] 5 11 17 [6,] 6 12 18 test[cbind(c(1,3,5), c(2,1,3))] [1] 7 3 17 This works fine, and is the equivalent of c(test[1,2], test[3,1], test[5,3]). cbind(c(1,3,5), c(2,1,3)) would obviously look like: [,1] [,2] [1,] 1 2 [2,]
2018 Nov 22
0
Subsetting row in single column matrix drops names in resulting vector
The problem is that the drop is only applied (or not) after the subsetting, so what R does is: - Getting the subset, which means a 1 x 1 matrix. - Only then It either returns that as is (when drop=FALSE), or removes ALL dimensions of extent 1, regardless of whether these are rows or columns (or higher dimensions). And it can't keep any names, because what name should be returned? The name
2011 Oct 10
1
"invalid or not-yet-implemented 'Matrix' subsetting"
I have this error and I can't figure out whats wrong: "invalid or not-yet-implemented 'Matrix' subsetting" it pops up when I try to run this line of code: S <- B[indices.mod,union(mir.e.nc,mir.negatives.nc)] -- View this message in context: http://r.789695.n4.nabble.com/invalid-or-not-yet-implemented-Matrix-subsetting-tp3891550p3891550.html Sent from the R help
2006 Nov 07
1
subsetting a matrix and filling other
Hi, Having a matrix F(189,6575) I want to do this: z1<-subset(F[,1], F[,1] >= 5 & F[,1] <= 10) . . . z189<-subset(F[,189], F[,189] >= 5 & F[,189] <= 10) I would prefer to have an empty matrix, say 'z' in order to fill its columns with the output of subsetting F. But each of the subsets can differ in length. It's to say: length(z1) 1189 length(z2) 1238