Displaying 16 results from an estimated 16 matches for "rowcount".
2005 Oct 05
0
CVS won't compile: res_odbc error
...-c -o res_odbc.o res_odbc.c
res_odbc.c: In function `odbc_sanity_check':
res_odbc.c:131: `SQLLEN' undeclared (first use in this function)
res_odbc.c:131: (Each undeclared identifier is reported only once
res_odbc.c:131: for each function it appears in.)
res_odbc.c:131: parse error before `rowcount'
res_odbc.c:147: `rowcount' undeclared (first use in this function)
make[1]: *** [res_odbc.o] Error 1
make[1]: Leaving directory `/usr/src/asterisk-1.2.0-beta1/res'
make: *** [subdirs] Error 1
---CVS---
gcc -shared -Xlinker -x -o res_agi.so res_agi.o
gcc -pipe -Wall -Wstrict-prototyp...
2009 Jan 29
2
Taking the min of each row in a matrix
...me the value for the entire
matrix. I want the min (for example) of each row. pmin looks useful,
but I can't seem to get the syntax right to apply to each column.
Right now I am doing this. Is there a one-liner that would work instead?
minResult <- vector (mode="list", length=rowCount)
for (row in 1:rowCount)
{
minResult[[row]] <- min(corResult[row], na.rm = TRUE)
}
Thanks in advance.
WILL
2004 Jun 29
0
gambling problem
...=payoffvec,timer=timer,output=aa)
}
####################################################################################
#COUNTER - this function calculates the number of times each of the
various payoff combinations occur
COUNTER<-function(reelpic,nreels,countcombs,payoffcombs,payoff,bet)
{
rowcounter<-1
for (ci in 1:(nreels-1))
{
ifelse (reelpic[1,ci+1]==reelpic[1,ci],rowcounter<- 1 +
rowcounter,break)
}# nextci
tile1<-reelpic[1,1]
countcombs[3*tile1+rowcounter-3]<-1+countcombs[3*tile1+rowcounter-3]
payoff<-payoffcombs[3*tile1+rowcounter-3]-bet
list(countcombs=countcombs,p...
2006 Jan 19
3
problems with migrations in sql server
...ion FROM schema_info 54
SQL:BatchCompleted SELECT TOP 1 version FROM schema_info 54
SQL:BatchCompleted CREATE TABLE Foo ([id] int NOT NULL IDENTITY(1, 1)
PRIMARY KEY, [Name] varchar(50)) 54
SQL:BatchCompleted UPDATE schema_info SET version = 2 54
SQL:BatchCompleted SELECT @@ROWCOUNT AS AffectedRows 54
SQL:BatchCompleted SELECT TOP 1 * FROM schema_info 54
SQL:BatchCompleted SELECT table_name from information_schema.tables WHERE
table_type = ''BASE TABLE'' 54
SQL:BatchCompleted SELECT COLUMN_NAME as ColName, COLUMN_DEFAULT as
DefaultValue, DATA_...
2007 Feb 22
4
Crosstabbing multiple response data
...ge than I have in use of R; the example in the posting guide was also more complex than I was ready for, I'm afraid.)
Sample of some of my efforts:
library(reshape)
melt(ratings,id=c("id"))
ds1 <- melt(ratings,id=c("id"))
table(ds1$variable, ds1$variable) # returns only rowcounts, 3 along diagonal
xtabs(formula = value ~ ds1$variable + ds1$variable , data=ds1) # returns only a single row of collapsed counts, appears to not allow 1 variable in multiple uses
I suspect I am close, so any nudges in the right direction would be helpful.
Thanks much, Michael
PS: www.rseek.org...
2010 Aug 16
2
How to make flowchart in R?
I have a large dataset and I would like to make some kind of flowchart
from this dataset. The idea is to show rowcounts from data subsets:
data1
rows= 100000
|
/ \
/ \
males females,
rows=500000 rows=500000
/\
/ \
/ \...
2007 Nov 07
1
thumbnailer/swfdec-thumbnailer.c
thumbnailer/swfdec-thumbnailer.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit a31d0686b78df2da96b9d8d1e3220e63978bba30
Author: Benjamin Otte <otte at gnome.org>
Date: Wed Nov 7 20:02:04 2007 +0100
s/swfdec_player_get_image_size/swfdec_player_get_default_size/
diff --git a/thumbnailer/swfdec-thumbnailer.c b/thumbnailer/swfdec-thumbnailer.c
index
2007 Jan 23
11
dynamic tablenames
...keeping).
For performance reasons I''m thinking about storing the data for each
entity in separate tables. So instead of a ''logdata'' table with >200
million rows, I''d create ''logdata_001'', ''logdata_002'',... tables where
the rowcount of even the biggest entity logdata stays below 3 million.
Rails seems to have no problem with me setting the tablename
(set_table_name) on each incoming request before accessing the database.
I have this gut feeling though I''m overlooking something nasty.
Anyone have any comments/sugges...
2009 Aug 24
1
hdf5 package segfault when processing large data
Hi there,
I am currently working on something that uses hdf5 library. I think
hdf5 is a great data format, I've used it somewhat extensively in
python via PyTables. I was looking for something similar to that in R.
The closest I can get is this library: hdf5. While it does not work
the same way as PyTables did, but it's good enough to let them
exchange data via hdf5 file.
There is just 1
2008 Jun 15
3
Delete Block of Rows
I am trying to delete a section of rows from a data frame (based on no
condition). Lets say my data frame has 200 rows and I want to delete rows 1
through 25. How would I do this?
I know x[ -1, ] deletes the first row (or any desired row). I tried using
different variations of this, like x[ -c(1:25), ] but that didn't work. I
also tried writting a few functions, for example:
deleteRows
2006 Aug 14
4
Updating a table with Ajax
I''ve been banging my head against the wall trying to update a table
(add/delete rows) using Ajax. It seems simple enough but just doesn''t work
for me. I can get it to work using DIVs instead of a table, but doing the
layout with DIVs is much more cumbersome and I know it works for others with
a table (though I haven''t been able to find an exact example code anywhere).
2006 Mar 08
1
MSSQL error - 80004005 & Rails
...ng error:
ActiveRecord::StatementInvalid: DBI::DatabaseError: Execute
OLE error code:80004005 in Microsoft OLE DB Provider for SQL Server
Cannot create new connection because in manual or distributed
transaction mode.
HRESULT error code:0x80020009
Exception occurred.: SELECT @@ROWCOUNT AS AffectedRows: UPDATE
users SET [sb_username] = '''', [hl_perclick_replenish] = NULL, [fname] =
''Mark'', [ccExpYear] = NULL, [nameoncard] = '''', [hl_perclick_method] =
NULL, [ccType] = NULL, [hl_perclick_charged_date] = NULL,
[where_heard_code...
2006 Jul 27
6
Any interest in "merge" and "by" implementations specifically for sorted data?
Hi Developers,
I am looking for another new project to help me get more up to speed
on R and to learn something outside of R internals. One recent R
issue I have run into is finding a fast implementations of the
equivalent to the following SAS code:
/* MDPC is an integer sort key made from two integer columns */
MDPC = (MD * 100000) + PCO;
/* sort the dataset by the key */
PROC SORT;
2009 Feb 09
0
ROracle - ORA-02005: implicit (-1) length not valid for this bind or define datatype
...aPreparedStatement:(24060,0,0)>
Statement: insert into tmp_r (N1,C1,N2) values(:1,:2,:3)
Has completed? no
Affected rows: -1
Rows fetched: -1
> oraPreparedStatementInfo(ps)
$statement
[1] "insert into tmp_r (N1,C1,N2) values(:1,:2,:3)"
$isSelect
[1] 0
$rowsAffected
[1] -1
$rowCount
[1] -1
$completed
[1] -1
$fields
$fields[[1]]
NULL
$boundParams
parameter columnNum Sclass
1 1 1 double
2 2 2 character
3 3 3 double
> oraBoundParamsInfo(ps)
parameter columnNum Sclass
1 1 1 double
2 2...
2006 Apr 28
1
imaptest, with options!
I hacked some command line options into imaptest.
I dont think I broke it..
Place into dovecot-source root as usual and compile with:
gcc imaptest.c -o imaptest -Wall -W -I. -Isrc/lib -DHAVE_CONFIG_H
src/lib/liblib.a
As per Timo's instructions.
# imaptest -h imaptest [USER at IP:PORTNO] [pass=PASSWORD] [mbox=MBOX]
[clients=CC] [msgs=NMSG] [use_authenticate] [PORTNO]
USER = template for
2008 Sep 26
0
PRI TE110P Configuration (Solved)
...; fetch row
>
> exten => 1,n,GotoIf($["${foundRow}" = "1"]?done) ; leave loop if no row
> found
>
> exten => 1,n,Set(State=${State})
>
> exten => 1,n,Goto(fetchrow) ; continue loop if row found
>
> exten => 1,n,Set(RowsReturned=MYSQL(Fetch rowcount ${resultid})
>
> exten => 1,n(done),MYSQL(Clear ${resultid})
>
> ..
>
>
>
>
>
>
>
>
>
> David Murphy Systems Adminsitrator
>
> myLogo
>
> Email: AIM:
>
> <mailto:omar at icewat...