Skip to content

Commit

Permalink
Sort by timestamp and sensor
Browse files Browse the repository at this point in the history
  • Loading branch information
edwardlavender committed May 20, 2024
1 parent 278915a commit ae86ef7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/011-R-from-Julia.jl
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ function r_get_dataset(yobs::Dict, model_type::Type{<: ModelObs})
end
# Convert the dictionaries to a DataFrame
df = DataFrame(dicts)
sort!(df, [:timestamp, :sensor_id])
# df.key .= key
push!(output, df)
end
Expand Down

0 comments on commit ae86ef7

Please sign in to comment.