DyadData
Documentation for DyadData.
DyadInterface.ArtifactTypeDyadInterface.ArtifactType.DataFrameDyadInterface.ArtifactType.DownloadDyadInterface.ArtifactType.PlotlyPlotDyadData.DyadDatapointDyadData.DyadDatapointDyadData.DyadDatapointDyadData.DyadDatasetDyadData.DyadDatasetDyadData.DyadDatasetDyadInterface.AbstractAnalysisSolutionDyadInterface.AbstractAnalysisSpecDyadInterface.AbstractCustomizableVisualizationSpecDyadInterface.AnalysisSolutionMetadataDyadInterface.ArtifactMetadataDyadInterface.AttributeDyadInterface.ODEProblemConfigDyadInterface.PlotlyVisualizationSpecDyadData.build_dataframeDyadData.resolve_dyad_uriDyadInterface.artifactsDyadInterface.customizable_visualizationDyadInterface.deserialize_solutionDyadInterface.get_simplified_modelDyadInterface.rebuild_solDyadInterface.run_analysisDyadInterface.serialize_solution
DyadData.DyadDatapoint Method
DyadDatapoint(
username::AbstractString,
name::AbstractString;
variable_names::Vector{<:AbstractString},
kwargs...)Represent a datapoint dataset that is backed by a JuliaHub dataset.
Keyword arguments
variable_names: a vector of the names of the columns for the variables
When reading files (local file option or a downloaded JuliaHub dataset), CSV.jl is used. Additional keyword arguments passed to this function will be passed on to CSV.read. This can help with changing settings such as the delimiter used in the file. See https://csv.juliadata.org/stable/reading.html for more details.
DyadData.DyadDatapoint Method
DyadDatapoint(
filepath::AbstractString = "";
variable_names::Vector{<:AbstractString},
kwargs...)Represent a datapoint that is backed by a local file.
Keyword arguments
variable_names: a vector of the names of the columns for the variables
When reading files (local file option or a downloaded JuliaHub dataset), CSV.jl is used. Additional keyword arguments passed to this function will be passed on to CSV.read. This can help with changing settings such as the delimiter used in the file. See https://csv.juliadata.org/stable/reading.html for more details.
DyadData.DyadDatapoint Method
DyadDatapoint(
data::AbstractVector;
variable_names::Vector{<:AbstractString},
kwargs...)Represent a datapoint dataset that is backed by raw data (e.g. a vector).
Keyword arguments
variable_names: a vector of the names of the columns for the variables
DyadData.DyadDataset Method
DyadDataset(
filepath::AbstractString = "";
independent_var::AbstractString,
dependent_vars::Vector{<:AbstractString},
kwargs...)Represent a timeseries-like dataset that is backed by a local file.
Keyword arguments
independent_var: the name of the column that represents the independent variable (usually the time)dependent_vars: a vector of the names of the columns for the dependent variables
When reading files (local file option or a downloaded JuliaHub dataset), CSV.jl is used. Additional keyword arguments passed to this function will be passed on to CSV.read. This can help with changing settings such as the delimiter used in the file. See https://csv.juliadata.org/stable/reading.html for more details.
DyadData.DyadDataset Method
DyadDataset(
data;
independent_var::AbstractString,
dependent_vars::Vector{<:AbstractString},
kwargs...)Represent a timeseries-like dataset that is backed by raw data.
Keyword arguments
independent_var: the name of the column that represents the independent variable (usually the time)dependent_vars: a vector of the names of the columns for the dependent variables
DyadData.build_dataframe Method
build_dataframe(d::DyadDataset)Build a DataFrame out of the specified timeseries dataset. The column names will correspond to the names of the independent variable & the ones for the dependent variables. Note that the order of the columns is dictated by the order in the file, not by the order inside the dependent_vars argument for DyadDataset. The dependent_vars argument only specifies the available columns to use, not their order.
DyadData.resolve_dyad_uri Method
resolve_dyad_uri(uri::AbstractString)Resolve a dyad:// URI to a local file path.
The expected scheme is dyad://<package_name>/<local_path>, where <local_path> is relative to the assets folder of the package.
Examples
julia> using BlockComponents, DyadData
julia> DyadData.resolve_dyad_uri("dyad://BlockComponents/data/block_components.csv")
"/Users/someuser/.julia/dev/BlockComponents/assets/data/block_components.csv"