Skip to content

Commit

Permalink
Code cleanup
Browse files Browse the repository at this point in the history
Document all functions in show.jl
Document all functions in utils.jl
Remove all whitespace at the end of a line
Add abstractdataframe.jl to store functions that apply to all ADF's
  • Loading branch information
johnmyleswhite committed Jan 27, 2014
1 parent 9b092dc commit 276c8f8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/RDA.jl
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ if ENDIAN_BOM == 0x01020304
const R_NA_FLOAT64 = reinterpret(Float64, [0x7ff00000, uint32(1954)])[1]
else
const R_NA_FLOAT64 = reinterpret(Float64, [uint32(1954), 0x7ff00000])[1]
end
end
const R_NA_INT32 = typemin(Int32)

##############################################################################
Expand Down Expand Up @@ -143,15 +143,15 @@ readuint32(io::IO, A::Bool) = A ? uint32(readline(io)) : hton(read(io, Uint32))
readfloat64(io::IO, A::Bool) = A ? float64(readline(io)) : hton(read(io, Float64))

function readintorNA(io::IO, A::Bool)
if A
if A
str = chomp(readline(io));
return str == "NA" ? R_NA_INT32 : int32(str)
end
hton(read(io, Int32))
end

function readfloatorNA(io::IO, A::Bool)
if A
if A
str = chomp(readline(io));
return str == "NA" ? R_NA_FLOAT64 : float64(str)
end
Expand Down

0 comments on commit 276c8f8

Please sign in to comment.