{"id":16499331,"url":"https://github.com/tpapp/stansamples.jl","last_synced_at":"2025-03-01T18:20:42.552Z","repository":{"id":54739947,"uuid":"90725689","full_name":"tpapp/StanSamples.jl","owner":"tpapp","description":"Read samples from CmdStan into vectors of the appropriate Julia type.","archived":false,"fork":false,"pushed_at":"2022-12-25T19:39:27.000Z","size":110,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-02-28T16:20:13.696Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Julia","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tpapp.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-05-09T09:09:39.000Z","updated_at":"2023-04-03T11:30:33.000Z","dependencies_parsed_at":"2022-08-14T01:20:34.184Z","dependency_job_id":null,"html_url":"https://github.com/tpapp/StanSamples.jl","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tpapp%2FStanSamples.jl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tpapp%2FStanSamples.jl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tpapp%2FStanSamples.jl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tpapp%2FStanSamples.jl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tpapp","download_url":"https://codeload.github.com/tpapp/StanSamples.jl/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241404965,"owners_count":19957736,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-11T14:52:11.002Z","updated_at":"2025-03-01T18:20:42.530Z","avatar_url":"https://github.com/tpapp.png","language":"Julia","funding_links":[],"categories":[],"sub_categories":[],"readme":"# StanSamples.jl\n\n![lifecycle](https://img.shields.io/badge/lifecycle-maturing-blue.svg)\n[![build](https://github.com/tpapp/StanSamples.jl/workflows/CI/badge.svg)](https://github.com/tpapp/StanSamples.jl/actions?query=workflow%3ACI)\n[![codecov.io](http://codecov.io/github/tpapp/StanSamples.jl/coverage.svg?branch=master)](http://codecov.io/github/tpapp/StanSamples.jl?branch=master)\n\nRead Stan samples from a CSV file. Columns that belong to the same variable are grouped into arrays.\n\n```julia\njulia\u003e using StanSamples\n\njulia\u003e DATA = \"a,b.1,b.2,c.1.1,c.2.1,c.1.2,c.2.2\\n\" *\n              \"1.0,2.0,3.0,4.0,5.0,6.0,7.0\\n\" *\n              \"8.0,9.0,10.0,11.0,12.0,13.0,14.0\"\n\njulia\u003e samples = read_samples(IOBuffer(DATA));\n\njulia\u003e samples.a\n2-element Array{Float64,1}:\n 1.0\n 8.0\n\njulia\u003e samples.b\n2×2 ElasticArrays.ElasticArray{Float64,2,1}:\n 2.0   9.0\n 3.0  10.0\n\njulia\u003e samples.c\n2×2×2 ElasticArrays.ElasticArray{Float64,3,2}:\n[:, :, 1] =\n 4.0  6.0\n 5.0  7.0\n\n[:, :, 2] =\n 11.0  13.0\n 12.0  14.0\n\njulia\u003e header, matrix = read_sample_matrix(IOBuffer(DATA))\n\njulia\u003e header, matrix = read_sample_matrix(io);\n\njulia\u003e header\n7-element Vector{SubString{String}}:\n \"a\"\n \"b.1\"\n \"b.2\"\n \"c.1.1\"\n \"c.2.1\"\n \"c.1.2\"\n \"c.2.2\"\n\njulia\u003e matrix\n2×7 Matrix{Float64}:\n 1.0  2.0   3.0   4.0   5.0   6.0   7.0\n 8.0  9.0  10.0  11.0  12.0  13.0  14.0\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftpapp%2Fstansamples.jl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftpapp%2Fstansamples.jl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftpapp%2Fstansamples.jl/lists"}