similar to: how to create a simple loop ?

Displaying 9 results from an estimated 9 matches similar to: "how to create a simple loop ?"

2009 Mar 05
3
Dropping rows conditionally
Dear R-help team, I am getting addicted to using R but keep on getting many challenges on the way especially on data management (data cleaning). I have been wanting to drop all the rows if there values are `NA' or have specific values like 1 or 2 or 3. mdat <- matrix(1:21, nrow = 7, ncol=3, byrow=TRUE, dimnames = list(c("row1",
2007 Nov 12
1
update matrix with subset of it where only row names match
I guess this has a simple solution: I have matrix 'mat1' which has row and column names, e.g.: A B C row1 0 0 0 row2 0 0 0 .... rown 0 0 0 I have a another matrix 'mat2', essentially a subset of 'mat1' where the rownames are all in 'mat1' e.g.: B row3 5 row8 6 row54 7 I want to insert the values of matrix mat2 for column B (in reality it could be some or
2006 Mar 28
1
weights in glm (PR#8720)
Full_Name: Robert Pusz Version: 2.2.1 OS: Windows Submission from: (NULL) (157.25.9.126) Hello, In my opinion something is wrong with 'weights' option in glm. My code is following: ###begin of the code#### cl <- c(5012, 106, 3410, 5655, 1092, 1513, 557, 1351, 3133, 2063, 3257, 4179, 5582, 5900, 8473, 4932, 3463, 5596, 2262, 0, 2638, 1111, 4881, 4211, 6271, 5257, 6926, 6165, 0, 0,
2005 Apr 25
4
panel ordering in nlme and augPred plots
Dear all I am trying nlme together with Pinheiro/Bates book. I constructed grouped data object with suitable plotting layout (according to some common factor, panels from bottom to top are in increasing order). When I do nlme(... some stuff...) I get fitted object which I can plot with plot(augPred(fit.nlme6, level=0:1)) but it results in completely different ordering. Is there any way
2010 Feb 13
1
max and in the zoo package
hi everyone. i am dealing on a zoo-class object.i am aware of the 'min' and 'max' function to get the minimum and the maximum values.getting these maximum and minimum values is ont thing.but, how to get the (zoo) dates these values occur ? in fact, in analysing a time series i am interested in the particular (extreme) values AND in the moments they happen. regards.edouard.
2006 Jan 24
1
Scriptaculous and Photo Flipper a la TagWorld?
I saw a Flash-based photo-flipper on TagWorld ( http://www.tagworld.com/thepostalservice) and thought it would be nice to do something similar in Scripaculous. Anyone interested in taking a shot at it? Since rotation isn''t supported in CSS, what I would imagine would be a z-ordered "stack" of DIVs, possibly of slightly different sizes or just x/y-offset a bit from each other.
2006 Sep 28
1
beryl fork
I've seen that a lot of inaccurate and faulty information about this. All technical reasons (alternative configuration system, alternative decorator, xinerama...) for this fork are incorrect and I know that at least Quinn Storm is aware of this, based on a phone conversation we had last week. I've designed compiz to be extremely extensible. The plugin system should allow people to do
2007 Dec 07
0
Bug#454678: r-base-core: Crash when calling edit.matrix with edit.row.names = TRUE when there are no rownames (PR#10500)
Ben, Thanks for the bug report. I am off two minds about it as discussed below. But as it does indeed create a crash / segfault, I am passing this on to the R bug tracker. A suggested two-line patch is below; I tested the patch against a 'vanilla' 2.6.1 source tree. On 6 December 2007 at 19:32, Ben Goodrich wrote: | -----BEGIN PGP SIGNED MESSAGE----- | Hash: SHA1 | | Package:
2007 Dec 07
0
(PR#10500) Bug#454678: r-base-core: Crash when calling
I would say this was user error (insisting on editing non-existent rownames), although the argument is documented. You could argue that there are implicit rownames, but they would be 1, 2 ... not row1, row2 .... And rownames(mat) is NULL. For an interactive function the best solution seems to be to throw an error when the user asks for the impossible. I'll fix it for 2.7.0: it