Displaying 6 results from an estimated 6 matches for "getrow".
Did you mean:
gerow
2007 Nov 16
2
expand.grid overflows?
>cbn<-as.matrix(expand.grid( rep( list(0:1), 50)))
Error in rep.int(rep.int(seq_len(nx), rep.int(rep.fac, nx)), orep) :
invalid 'times' value
In addition: Warning message:
In rep.int(rep.int(seq_len(nx), rep.int(rep.fac, nx)), orep) :
NAs introduced by coercion
But I'm only interested in cbn matrix rows where:
cbn<- cbn[rowSums(cbn)==5,]
Is there a way to evaluate it
2001 May 09
2
[Newbie] Row-Iterator for data.frame??
...the case "caseNo" of the dataFrame.
now, this results in absolutely bad performance.
my question:
what is the most convenient and fastest way to access a single row of a
data.frame? if possible, i'd like something i could use like this:
sTable <- getSpectraTable()
case11 <- getRow( sTable, 11)
wn4000 <- case11$WN4000
is there a built-in function/method in R i didn't find yet?
also i'd like to avoid casting the data.frame to a matrix (or whatever)
for reducing the risks by holding data redundantly.
thank you for your help!
till
_______________________________...
2007 Sep 16
1
programming question
...19 2 2 0 1 0
In the first iteration, the first element 2 eliminates 8 and 26 because both
contain number 2 in the last position (first line being shorter).
The element 24 eliminates 51 and 78, and so on.
`findSubsets2` <-
function(element) {
require(QCA)
base3row <- getRow(rep(3,5), element, zerobased=TRUE)
increment <- function(x, y) {
a <- x
for (i in 1:2) {
a <- as.vector(outer(y, a, "+"))
x <- c(x, a)
}
return(x)
}
indices <- which(base3row == 0)
mbase <- c...
2005 Aug 21
3
Data binding
Hi,
Is there any interest in data binding functions? I''ve got several
functions that enable you to populate tables, select lists and forms
etc using js arrays and objects.
It could be useful to anyone using Ajax, computed javascript or any
other mechanism to read data from a server separately from the HTML.
Any interest?
Joe.
2007 Jan 25
0
[854] trunk/wxruby2/swig/classes: Add support for GridBagSizer
...Copyright 2004-2007 by Kevin Smith
+// released under the MIT-style wxruby2 license
+
+class wxGBPosition
+{
+public:
+ wxGBPosition() : m_row(0), m_col(0) {}
+ wxGBPosition(int row, int col) : m_row(row), m_col(col) {}
+
+ // default copy ctor and assignment operator are okay.
+
+ int GetRow() const { return m_row; }
+ int GetCol() const { return m_col; }
+ void SetRow(int row) { m_row = row; }
+ void SetCol(int col) { m_col = col; }
+
+ bool operator==(const wxGBPosition& p) const { return m_row == p.m_row && m_col == p.m_col; }
+ bool operator!=(const wxGBP...
2005 Aug 21
15
New inheritance
A good number of the samples I have tested are outright or subtly broken
on Windows now. I''m trying to determine what the cause is. Mostly it
seems related to the initialize function not being created when it
should be.
Case in point: ClientDC.i
The caret example won''t work at all because initialize isn''t declared
any longer. If you comment out the import