Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added mean function #109

Merged
merged 1 commit into from
May 28, 2019
Merged

Added mean function #109

merged 1 commit into from
May 28, 2019

Conversation

cpfiffer
Copy link
Member

Allows you to do stuff like

# Returns a dataframe with just parameters and their means.
mean(chn)

# Returns either a dataframe (if more than one parameter)
# or a single value.
mean(chn, :x)

# Returns a dataframe.
mean(chn, [:x, :y])

The above also works with Strings. I've also made a redundant Chains constructor a little more helpful by converting a 2d array to a 3d one, so you don't have to make an AxisArray or a 3d array yourself if you're passing in custom values.

@cpfiffer cpfiffer merged commit ff6b35e into master May 28, 2019
@cpfiffer cpfiffer deleted the csp/mean-func branch May 28, 2019 13:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant