Displaying 6 results from an estimated 6 matches for "my_result".
2009 Jun 04
2
RPostgreSQL segfault with LEFT JOIN
Hi,
I recently upgraded to R 2.9.0 on linux x86. After doing so, I switched to the
RPostgreSQL package for interfacing with a postgresql database. I am using
postgresql 8.3.7.
A query that works from the postgresql terminal is causing a segfault when
executed from R.
My sessionInfo, the error message, and the R code used to generate the error
are listed below.
I have noticed that a
2008 Jul 17
0
Re : float and double precision with C code
...;testData", PACKAGE="my_package")
> print(paste("R value #1 :", result[1]))
> print(paste("R value #2 :", result[2]))
> return(result)
> }
>
> ///////////////////////////////////////
> And in R console, after compilation :
>
>> my_result <- testData()
> C value #1 : 29.958334
> C value #2 : 29.875000
> [1] "R value #1 : 29.9583339691162"
> [1] "R value #2 : 29.875"
>
>> my_result[1] == 29.958334
> [1] FALSE
>
> ???
>
> How can I do to conserve my values ?
>
> Regards,...
2008 Jul 17
0
Re : Re : float and double precision with C code
...;testData", PACKAGE="my_package")
> print(paste("R value #1 :", result[1]))
> print(paste("R value #2 :", result[2]))
> return(result)
> }
>
> ///////////////////////////////////////
> And in R console, after compilation :
>
>> my_result <- testData()
> C value #1 : 29.958334
> C value #2 : 29.875000
> [1] "R value #1 : 29.9583339691162"
> [1] "R value #2 : 29.875"
>
>> my_result[1] == 29.958334
> [1] FALSE
>
> ???
>
> How can I do to conserve my values ?
>
> Regards,...
2006 Apr 20
1
ruby-ldap crashing WEBrick server
...Oracle DB, and displaying items. When it comes to using Ruby-ldap
though, it is quite a different matter. We''ve tried using Ruby-ldap
within irb, and all seems well. The basic scenario is:
conn = LDAP::Conn.new(''server_name'', 389)
conn.bind(account_here, password_here)
my_results = conn.search2(''base_here'', LDAP::LDAP_SCOPE_SUBTREE,
filter_here, attrs=nil)
When the third line is executed we get (again, all works fine in irb):
WEBrick server error:
Assertion failed: LDAP_VALID( ld ), file error.c, line 257
[2006-04-20 14:38:15] INFO WEBrick 1.3.1
[200...
2005 Mar 14
2
Install the RMySQL
...')' token
RS-MySQL.c: In function `RS_MySQL_exec':
RS-MySQL.c:411: `MYSQL' undeclared (first use in this
function)
RS-MySQL.c:411: `my_connection' undeclared (first use in
this function)
RS-MySQL.c:412: `MYSQL_RES' undeclared (first use in this
function)
RS-MySQL.c:412: `my_result' undeclared (first use in this
function)
RS-MySQL.c:418: parse error before ')' token
RS-MySQL.c:457: parse error before ')' token
RS-MySQL.c: In function `RS_MySQL_createDataMappings':
RS-MySQL.c:496: `MYSQL_RES' undeclared (first use in this
function)
RS-MySQL.c:496:...
2006 Jul 25
12
DRYing - similar named fields, etc.
...that describes the quality.
So, for item "ABC", I have a data field "abc" and a flag field "abcf"
I want to display this as columns of the same row of the display table.
So, what I have is this:
<tr><td> <b>ABC</b></td><td> <%=h @my_result.abc -%> </td><td> <%=h
@my_result.abcf %></td></tr>
I''d rather not do this for each of the elements. Is there a DRY way to
render this? The column name is all caps, the data field is all
lowercase and the flag is the same thing all lowercase with '...