Displaying 1 result from an estimated 1 matches for "ethanepropanemolfractot".
Did you mean:
ethanepropanemolfractotal
2008 Oct 23
0
RODBC and RDCOM
...I tried to work within RGui using RODBC:
> library(RODBC)
> conn = odbcConnect("SQL Server")
> odbcQuery(conn, "Select Formula from OGA_DEV.dbo.Equation where
EquationId = 3")
[1] 1
> results = sqlGetResults(conn)
> close(conn)
> results$Formula
[1]
((-0.19*({EthanePropaneMolFracTotal}*100)^2)+(12.3*({EthanePropaneMolFracTotal}*100))-13)*0.8
Levels:
((-0.19*({EthanePropaneMolFracTotal}*100)^2)+(12.3*({EthanePropaneMolFracTotal}*100))-13)*0.8
> typeof(results$Formula)
[1] "integer"
> typeof(results$Formula[1])
[1] "integer"
Formula was there. Notice t...