Displaying 13 results from an estimated 13 matches for "insertrow".
2010 Oct 07
2
using a package function inside another function
Hello all,
I am trying to use the micEcon 'insertRow' function inside a function
I have written. For example:
insert_row_test <- function(m){
insertRow(m,nrow(m)+1,v=0,rName="test")
}
However, when I try to call the 'insert_row_test' function (after
loading the micEcon package), it does not insert a row into the matrix...
2006 Jul 21
1
insert insertRow?
Dear all,
In the search for a command to insert a row between other rows in a data
frame I found that there seems to be no such command in the base R
package. There is however a very simple function insertRow in the
micEcon package, that makes use of rbind. I wondered if it would not be
possible to include the following micEcon functions in the base package:
insertRow
insertCol
Since the functions are already there, I would gather this is not a very
big effort. It would save people that just want t...
2006 Jul 21
1
insert insertRow?
Dear all,
In the search for a command to insert a row between other rows in a data
frame I found that there seems to be no such command in the base R
package. There is however a very simple function insertRow in the
micEcon package, that makes use of rbind. I wondered if it would not be
possible to include the following micEcon functions in the base package:
insertRow
insertCol
Since the functions are already there, I would gather this is not a very
big effort. It would save people that just want t...
2008 Oct 21
2
Inserting a new row in a matrix
...x4 matrix of zeros.
I have a file named "A"(4 rows,14 columns) which I make a sample of it 5
times. each time I get the mean for each column and put the result in the
"Avg" matrix. this is my code:
Avg=matrix(0,5,4)
>
> for(i in 1:5){
+ res=(A[sample(nrow(A), 5),])
+ insertRow(Avg,i,colMeans(res))
+ show(res)
+ show(Avg)
+ }
this is my result(I just copied the first sample) :
s1 s2 s3 s4
2 1 0 1 0
3 0 0 0 0
11 0 0 0 0
5 0 1 0 1
12 0 0 0 0
[,1] [,2] [,3] [,4]
[1,] 0 0 0 0
[2,] 0 0 0 0
[3,] 0 0 0 0...
2008 Jan 22
3
dynamic table/adding rows in IE using 'new Element("tr")'
...table.insert(r.insert(c.insert(link)));
}
The table gets built but is not visible in IE. Then the alternative
function below do not use "new Element()", but instead uses the
standard DOM method to add rows. And it works also in IE:
function addLinkToTable(table, link){
var r = table.insertRow(table.rows.length);
var c = r.insertCell(0);
$(c).insert(link);
}
in fact it''s just adding of the row that seems to fail when using "row
= new Element("tr"); table.insert(row)".
I wonder is this something that is "not supposed" to work with
prototype? BTW...
2004 Oct 23
0
Re: FXTable -- numColumns & resize
...database, for example, is it
> reasonable to assume that I should be able to resize by 1 row for each
> row from the database, w/o losing data (so I don''t have to know ahead of
> time how many rows will be filled in)?
For that situation I think I''d recommend the FXTable#insertRows method
(which is not destructuve like setTableSize is). To append a row to
the end of the table, pass the current number of rows as the
"starting" row number:
aTable.insertRows(aTable.numRows, 1)
> P.S. Should questions like this be sent to the list (fxruby-users), do
> you w...
2010 Aug 13
1
loop for inserting rows in a matrix
...to work on beginning with 1st
indx<-which(AerialSurveysm[,1]==m[i])
indx<-indx[[1]]
Check<-which(NewDat[,2]==k)
NewRow<-c(c(m[i]),k,0)
if(is.empty(Check)==TRUE)#if the selected date does not have a transect equal to transect k
AerialSurveysm<-insertRow(AerialSurveysm,indx,NewRow) #add a row to AerialSurveys.m in the location of the correct date
}
i=i+1
}
Thanks for any hints or thoughts on this (maybe I'm tackling it completely the wrong way!)!
Chandra
[[alternative HTML version deleted]]
2005 Feb 18
5
FXTable segfaults after multiple setTableSize calls
...tTableSize(TABLE_SIZE, 1)
(0...TABLE_SIZE).each do |r|
@table.setItemText(r, 0, "#{r}")
end
@table.setFocus
end
# seems to require more iterations, but still fails
def fillTable2
@table.setTableSize(0, 1)
(0...TABLE_SIZE).each do |r|
@table.insertRows(r)
@table.setItemText(r, 0, "#{r}")
end
@table.setFocus
end
def create
super
show(PLACEMENT_SCREEN)
end
end
def runme
application = FXApp.new("MyTest", "FoxTest")
TestWindow.new(application)
application.create
applica...
2009 Dec 28
0
micEcon split into miscTools, micEconAids, and micEcon
The "micEcon" package has been split into three packages: miscTools,
micEconAids, and micEcon.
a) miscTools (version 0.6-0) includes miscellaneous small tools and
utilities that are not related to (micro)economics, e.g. colMedians(),
rowMedians(), insertCol(), insertRow(), vecli(), symMatrix(),
triang(), semidefiniteness(), compPlot(), and rSquared(). The
miscTools package should depend on (almost) no other packages so that
it can be used in other packages without increasing the total
(recursive!) dependencies of these packages too much.
b) micEconAids (version 0...
2009 Dec 28
0
micEcon split into miscTools, micEconAids, and micEcon
The "micEcon" package has been split into three packages: miscTools,
micEconAids, and micEcon.
a) miscTools (version 0.6-0) includes miscellaneous small tools and
utilities that are not related to (micro)economics, e.g. colMedians(),
rowMedians(), insertCol(), insertRow(), vecli(), symMatrix(),
triang(), semidefiniteness(), compPlot(), and rSquared(). The
miscTools package should depend on (almost) no other packages so that
it can be used in other packages without increasing the total
(recursive!) dependencies of these packages too much.
b) micEconAids (version 0...
2006 Jul 27
4
inserting rows into a matrix
Hi
I have a little vector function that takes a vector A of strictly
positive integers
and outputs a matrix M each of whose columns is the vector, modified in
a complicated combinatorical way.
Now I want to generalize the function so that A can include zeroes.
Given A,
I want to strip out the zeroes, pass it to my function, and pad M
with rows at positions corresponding to the zeroes
2014 Aug 22
0
Wine release 1.7.25
...etSD.
Zhenbo Li (15):
mshtml: Added IHTMLStyle::textIndent property implementation.
mshtml: Added IHTMLStyleElement::lineHeight property.
mshtml: Added IHTMLStyle::listStylePosition property implementation.
mshtml/tests: Fix test_tr_modify().
mshtml: Added IHTMLTable::insertRow/deleteRow methods implementation.
mshtml: Added IHTMLTable::frame property implementation.
mshtml: Added IHTMLTableCell::align property implementation.
mshtml: Added IHTMLImgElement::isMap property implementation.
mshtml: Added IHTMLInputElement::size property implementation...
2006 Jun 03
12
How to get dynamically created inputs from html form back to rails app
Thank you in advance.
Although I have many years of experience in general, including cross-
platform processing, I am not an HTML/Javascript programmer. As a
result, I do not have certain specific baseline skills and/or knowledge
that are presumed in the Rails and Ajax documentation.
I am experienced with DOM manipulations, so the bare mechanics of
manipulating the browser GUI via Javascript