similar to: mask a matrix

Displaying 20 results from an estimated 900 matches similar to: "mask a matrix"

2004 Nov 20
2
subset on data frame
I have a data frame. And I'd like to subset according to rownames. subset(mydataframe, rownames(mydataframe) == myrow, select = mycols) it turned out that "myrow" cannot be a vector. But I have multiple rows to pick. Is there a way to get around this problem?? Thank you for your help!! Lei Jiang Department of Chemsitry University of Washington Box 351700 Seattle, WA 98195
2004 May 04
2
error in file(file, "r"): all connections are in use
Hi, there. I am trying to read multiple files into R, but I got following message Error in file(file, "r"): All connections are in use. I clean up memory everytime I read in one file. Do i have to somehow release file connection everytime i read in one?? Thanks. Lei Department of Chemsitry University of Washington Box 351700 Seattle, WA 98195 Phone: 206-616-6882 Fax: 206-685-8665
2002 Mar 28
3
how to run .r batch file
I am completely new to R, but have some bg in cs and stat. since R has an interactive programming environment, I thought I could write my command in a file and run it in batch mode in the Rgui. but it didnt work. I checked the doc. it said Rcmd BATCH inputfile. it didnt work either. Can someone help? thank you. thank you. also if you can shed some light on passing command line arguements (like
2003 Jan 23
1
subset dataframe based on rows
I want to subset the dataframe based on certain values in a row. for each row in my dataframe if ANY one value of a particular set of columns satisfies cond append a logical value true at the end of the row else append a false at the end of the row in the end I want to be able to subset the whole data based on the appended true or false value. I could literally code like this, but I think
2004 Sep 09
3
function "apply" and 3D arrays (PR#7221)
Full_Name: jarek tuszynski Version: 1.8.1 OS: windows 2000 Submission from: (NULL) (198.151.13.10) Example code: > a=array(1:27, c(3,3,3)) > apply(a,2, var) [,1] [,2] [,3] [1,] 1 1 1 [2,] 1 1 1 [3,] 1 1 1 [4,] 1 1 1 [5,] 1 1 1 [6,] 1 1 1 [7,] 1 1 1 [8,] 1 1 1 [9,] 1 1 1 > apply(a,2, mean) [1]
2006 May 05
2
how to get image properties
Hi friends in PHP there is a direct function GetImageSize(), with it I can easily determine the dimentions of an image file. How can I do in RoR. Please help me out Thanks in advance -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060505/13ba1640/attachment.html
2013 May 21
1
keep the centre fixed in K-means clustering
Dear R users I have the matrix of the centres of some clusters, e.g. 20 clusters each with 100 dimentions, so this matrix contains 20 rows * 100 columns numeric values. I have collected new data (each with 100 numeric values) and would like to keep the above 20 centres fixed/'unmoved' whilst just see how my new data fit in this grouping system, e.g. if the data is close to cluster 1
2005 Jun 13
3
Lattice: Combining xyplot and histogram
Dear all, I am trying to create a lattice plot which consists of 1 xyplot and 2 histograms (each for x and y). My first try was like this: x<-rnorm(1000) y<-rnorm(1000) xy <- xyplot(y~x) hist.x <- histogram(x) hist.y <- histogram(y) print(xy, position=c(0, 0.2, 1, 1), more=TRUE) print(hist.x, position=c(0, 0, 1, 0.33),more=T) print(hist.y, position=c(0.8, 0, 1, 1)) Ok, this is
2009 Nov 02
2
Robust ANOVA or alternative test?
Dear Colleagues,   I am running a three-way mixed-design ANOVA, with one manipulated IV, a group membership IV, and pre-/post- within subject factor. I am interested in the three-way interaction effect. The regular ANVOA is problematic, because (a) the sample sizes are very unbalanced, due to the group IV, (b) the homogeneity of variance is violated, and (c) the homogeneity of covariance is also
2006 Nov 13
8
Problems with Prototype in script.aculo.us 1.6.5
Hi, When I''m using the Prototype version attached to script.aculo.us 1.6.5 (Prototype 1.5.0_rc1 revision [5462]) I get some "Object doesn''t support this property or method" in the Effect.BlindDown method (when the method tries to get the dimentions). If I''m using the version of prototype that was attached to 1.6.4 I do not get this error. Is this a known
2009 Sep 06
2
Regarding SVM using R
Hi Abbas, Before I try to give you answers, I just want to mention that you should send R related reqests to the R-help list, and not me personally because (i) there's a greater likelihood that it will get answered in a timely manner, and (ii) people who might have a similar problem down the road might benefit from any answer via searching the list archives ... anyway: On Sep 5, 2009, at
2007 Apr 11
1
Programming Problem (for loop, random # control, 3 dimentional graph)
Dear List, This is just a programming problem which i cannot seem to figure out. I am trying to get a set of power from a test (say, kolmogorov smirnov) out of a distribution (say, G-K distribution) as follows. I am trying to reduce to pain of writing the whole set of data points (p# below) using "for" loop. However, I seem to have some problem in it as the output "M" does not
2016 Dec 21
1
setjmp/longjmp and volatile stores, but non-volatile loads
On Sun, Dec 18, 2016 at 11:58 PM, Jonas Maebe <jonas-devlists at watlock.be> wrote: > > Actually, there's another —even more fundamental— problem: the longjmp > will always restore the non-volatile registers to the contents they had > at the start of the try-block, which is not what LLVM expects when > entering an SEH-based landing pad. > The SjLjEHPrepare pass tries
2012 Aug 07
2
Passing arguments to a function within a function ...
Hallo Everybody How do you specify arguments for a function used within another function? Here is my problem: I am reconstructing a calculator for the burden of disease due to air pollution from publications and tools published by the WHO. The calculations make use of published dose-response relationships for particular health end-points. This is then applied to populations with known or
2009 Jan 03
3
Subpixel font rendering in 1.1.12
The announcement for Wine 1.1.12 says that support for subpixel font rendering has been added. The question is, how can we use it? Is there a way to enable it globally (there's no such setting in winecfg).
2002 Aug 14
1
OggShell v1.0 released
OggShell is a freeware Windows front-end for OggEnc. Suggestions and bug reports are welcome... Download page: http://www.gbg.bonet.se/stefant/oggshell/ Regards, Stefan Tobiasson <p>--- >8 ---- List archives: http://www.xiph.org/archives/ Ogg project homepage: http://www.xiph.org/ogg/ To unsubscribe from this list, send a message to 'vorbis-request@xiph.org' containing only
2005 Jan 07
6
Compilation of R code
Hello, I'm a newbie on this list. I have a R code but its execution take a very long time. Is it possible to compile it (in C for example) to decrease the execution time ? -- ---------------- Alexandre DEPIRE INRETS / GARIG
2005 Jan 07
6
Compilation of R code
Hello, I'm a newbie on this list. I have a R code but its execution take a very long time. Is it possible to compile it (in C for example) to decrease the execution time ? -- ---------------- Alexandre DEPIRE INRETS / GARIG
2015 Aug 20
3
new laptop: DVD or Blu-ray
W dniu 20.08.2015 o 13:26, Mauricio Tavares pisze: > On Aug 20, 2015 6:54 AM, "ken" <gebser at mousecar.com> wrote: >> >> One of the build options for a laptop I'm looking at buying is DVD vs > Blu-Ray. I've never used Blue-ray before, so is there some compelling > reason, as a Linux guy, to want to get Blu-ray? > First of all, is this going
2018 Jan 17
3
[BUG] dovecot 2.3.0 - service(lmtp) killed with signal 11 when user is overquota
Hi, I'm using dovecot 2.3.0 installed on a new CentOS 7.4 with rpm from Dovecot repo. When I use LMTP to deliver an email to an overquota user, lmtp service hangs with a segfault: Jan 17 13:39:45 server-02.example.com kernel: lmtp[5099]: segfault at 0 ip 0000563599e372c2 sp 00007ffeaa4fdc80 error 4 in lmtp[563599e31000+b000] Jan 17 13:39:45 server-02.example.com dovecot[5089]: lmtp(5099):