# Latest

**URL:** https://discourse.julialang.org/latest.md?page=1468

[Latest](https://discourse.julialang.org/latest.md) · [Categories](https://discourse.julialang.org/categories.md) · [Tags](https://discourse.julialang.org/tags.md)

**Page:** 1469

---

## [Equivalent of Rs \`aov(Y ~ B + Error(A/B), data=d)\`](https://discourse.julialang.org/t/equivalent-of-rs-aov-y-b-error-a-b-data-d/56629)

<div class="topic-metadata">

**Author:** [@jbrea](https://discourse.julialang.org/u/jbrea)\
**Replies:** 1\
**Last updated:** [March 7, 2021, 10:22am UTC](https://discourse.julialang.org/t/equivalent-of-rs-aov-y-b-error-a-b-data-d/56629 "2021-03-07T10:22:19Z")

</div>

Is there a julia equivalent of R’s way to compute classical anovas with random effects? For example, is there an easy way to obtain the following result without calling R? julia\> using DataFrames, RCall julia\> df = Da…

---

## [VS Code - Can't run Julia without debugging](https://discourse.julialang.org/t/vs-code-cant-run-julia-without-debugging/42944)

<div class="topic-metadata">

**Author:** [@reinermartin](https://discourse.julialang.org/u/reinermartin)\
**Replies:** 9\
**Last updated:** [March 7, 2021, 10:18am UTC](https://discourse.julialang.org/t/vs-code-cant-run-julia-without-debugging/42944 "2021-03-07T10:18:22Z")

</div>

For a few weeks now the command “Run Without Debugging” in VS Code runs Julia with debugging. This is true on three different machines. Is there something obvious I might be doing wrong? I am running the latest version …

---

## [I can't load RDatasets in Julia](https://discourse.julialang.org/t/i-cant-load-rdatasets-in-julia/56568)

<div class="topic-metadata">

**Author:** [@Apoorva-Bhatt](https://discourse.julialang.org/u/Apoorva-Bhatt)\
**Replies:** 2\
**Last updated:** [March 7, 2021, 9:06am UTC](https://discourse.julialang.org/t/i-cant-load-rdatasets-in-julia/56568 "2021-03-07T09:06:33Z")

</div>

On doing Iris = dataset(“datasets”, “iris”), I get the following error - Iris UndefVarError: load not defined action(::Symbol, ::Array{Union{Base.PkgId, Module},1}, ::FileIO.Formatted; options::Base.Iterators.Pairs{Un…

---

## [Strange behavior with dataframes in julia 1.6](https://discourse.julialang.org/t/strange-behavior-with-dataframes-in-julia-1-6/56642)

<div class="topic-metadata">

**Author:** [@jonjilla](https://discourse.julialang.org/u/jonjilla)\
**Replies:** 6\
**Last updated:** [March 7, 2021, 9:04am UTC](https://discourse.julialang.org/t/strange-behavior-with-dataframes-in-julia-1-6/56642 "2021-03-07T09:04:51Z")

</div>

I’m seeing something strange in dataframes. In version 1.5.3, i am using the leftjoin function in dataframes and it works OK df = DataFrame(A = 1:4, B = \["M", "F", "F", "M"\]) df2 = DataFrame(A = 1:4, C = \["M", "F", "F"…

---

## [Using PkgTemplates.jl to create new github repository](https://discourse.julialang.org/t/using-pkgtemplates-jl-to-create-new-github-repository/56651)

<div class="topic-metadata">

**Author:** [@SpinolaHours](https://discourse.julialang.org/u/SpinolaHours)\
**Replies:** 10\
**Last updated:** [March 7, 2021, 8:05am UTC](https://discourse.julialang.org/t/using-pkgtemplates-jl-to-create-new-github-repository/56651 "2021-03-07T08:05:03Z")

</div>

Hi, I’m fairly new to Julia and I’m trying to make use of the PkgTemplates.jl package. When I generate a new package I expect a new repository to be created on github however this doesn’t seem to be the case. Otherwis…

---

## [Is there a way to apply constant folding with \`nameof\` for a simple \`UnionAll\`?](https://discourse.julialang.org/t/is-there-a-way-to-apply-constant-folding-with-nameof-for-a-simple-unionall/56653)

<div class="topic-metadata">

**Author:** [@kimikage](https://discourse.julialang.org/u/kimikage)\
**Replies:** 6\
**Last updated:** [March 7, 2021, 6:39am UTC](https://discourse.julialang.org/t/is-there-a-way-to-apply-constant-folding-with-nameof-for-a-simple-unionall/56653 "2021-03-07T06:39:11Z")

</div>

nameof(::UnionAll) does not perform constant folding. julia\> @code\_typed nameof(Complex{Float32}) CodeInfo( 1 ─ return :Complex ) =\> Symbol julia\> @code\_typed nameof(Complex) CodeInfo( 1 ─ nothing::Nothing 2 …

---

## [Generic type parametrized by supertype](https://discourse.julialang.org/t/generic-type-parametrized-by-supertype/56643)

<div class="topic-metadata">

**Author:** [@jzr](https://discourse.julialang.org/u/jzr)\
**Replies:** 5\
**Last updated:** [March 7, 2021, 6:17am UTC](https://discourse.julialang.org/t/generic-type-parametrized-by-supertype/56643 "2021-03-07T06:17:21Z")

</div>

Is it possible to create a generic type whose parameter is its supertype? I thought this would be it but it returns false. julia\> struct Foo{T} \<: T where T end julia\> Foo{Int64} \<: Int64 false

---

## [How is differentiation of implicit parameters implemented in Flux.jl?](https://discourse.julialang.org/t/how-is-differentiation-of-implicit-parameters-implemented-in-flux-jl/56656)

<div class="topic-metadata">

**Author:** [@wujinq](https://discourse.julialang.org/u/wujinq)\
**Replies:** 0\
**Last updated:** [March 7, 2021, 6:16am UTC](https://discourse.julialang.org/t/how-is-differentiation-of-implicit-parameters-implemented-in-flux-jl/56656 "2021-03-07T06:16:54Z")

</div>

In the document of Flux.jl an example of differentiation of implicit parameters is given as follows: julia\> x = \[2, 1\]; julia\> y = \[2, 0\]; julia\> gs = gradient(params(x, y)) do f(x, y) end Grads(...) …

---

## [Location of test files for base/refpointer.jl](https://discourse.julialang.org/t/location-of-test-files-for-base-refpointer-jl/56349)

<div class="topic-metadata">

**Author:** [@dev\_prithvitewatia](https://discourse.julialang.org/u/dev_prithvitewatia)\
**Replies:** 2\
**Last updated:** [March 7, 2021, 5:10am UTC](https://discourse.julialang.org/t/location-of-test-files-for-base-refpointer-jl/56349 "2021-03-07T05:10:02Z")

</div>

I am working on issue #39672 but could not find the test files for base/refpointer.jl .I asked in the issue on Github but got no reply. So can anyone please tell me where the test file is located so that I could fix the …

---

## [Cannot assign a value to variable workspace](https://discourse.julialang.org/t/cannot-assign-a-value-to-variable-workspace/56613)

<div class="topic-metadata">

**Author:** [@priod](https://discourse.julialang.org/u/priod)\
**Replies:** 1\
**Last updated:** [March 6, 2021, 6:30pm UTC](https://discourse.julialang.org/t/cannot-assign-a-value-to-variable-workspace/56613 "2021-03-06T18:30:49Z")

</div>

I am using Ipopt optimizer in a problem, I have created a variable name inside the model in an array form, for instance, (k,p\[1:2\]), after running the specific cell, it is giving me the error, that cannot assign a value …

---

## [Axis Label Colors in Plots.jl](https://discourse.julialang.org/t/axis-label-colors-in-plots-jl/10391)

<div class="topic-metadata">

**Author:** [@gideonsimpson](https://discourse.julialang.org/u/gideonsimpson)\
**Replies:** 2\
**Last updated:** [March 7, 2021, 3:26am UTC](https://discourse.julialang.org/t/axis-label-colors-in-plots-jl/10391 "2021-03-07T03:26:43Z")

</div>

How do I control the color of the axes labels in Plots.jl?

---

## [Julia 1.5.4 testing period](https://discourse.julialang.org/t/julia-1-5-4-testing-period/56052)

<div class="topic-metadata">

**Author:** [@ararslan](https://discourse.julialang.org/u/ararslan)\
**Replies:** 6\
**Last updated:** [March 6, 2021, 11:38pm UTC](https://discourse.julialang.org/t/julia-1-5-4-testing-period/56052 "2021-03-06T23:38:43Z")

</div>

The release-1.5 branch on the Julia repository now contains the set of commits we’re planning to tag as v1.5.4, the fourth patch release in the 1.5 series. The list of commits included since v1.5.3 is available here. As …

---

## [Can't install juliadb](https://discourse.julialang.org/t/cant-install-juliadb/56633)

<div class="topic-metadata">

**Author:** [@Joris\_Pinkse](https://discourse.julialang.org/u/Joris_Pinkse)\
**Replies:** 2\
**Last updated:** [March 6, 2021, 10:11pm UTC](https://discourse.julialang.org/t/cant-install-juliadb/56633 "2021-03-06T22:11:28Z")

</div>

I’m not sure what my options are here. Thoughts/recommendations? (@v1.5) pkg\> add JuliaDB Resolving package versions… ERROR: Unsatisfiable requirements detected for package Plots \[91a5bcdd\]: Plots \[91a5bcdd\] log: ├…

---

## [Why no NAND nor NOR in Bitwise Operators?](https://discourse.julialang.org/t/why-no-nand-nor-nor-in-bitwise-operators/56540)

<div class="topic-metadata">

**Author:** [@citron](https://discourse.julialang.org/u/citron)\
**Replies:** 3\
**Last updated:** [March 6, 2021, 9:13pm UTC](https://discourse.julialang.org/t/why-no-nand-nor-nor-in-bitwise-operators/56540 "2021-03-06T21:13:52Z")

</div>

Hello I would appreciate to see (vector) NAND (aka ⊼) and NOR (aka ⊽) bitwise operators implemented because these functions are commonly hardwired nowadays. We can see them in the Arm A64 Instruction Set Architecture a…

---

## [Trying to figure out what testing etc libraries I should be using for julia](https://discourse.julialang.org/t/trying-to-figure-out-what-testing-etc-libraries-i-should-be-using-for-julia/56429)

<div class="topic-metadata">

**Author:** [@BridgeBot](https://discourse.julialang.org/u/BridgeBot)\
**Replies:** 2\
**Last updated:** [March 6, 2021, 9:09pm UTC](https://discourse.julialang.org/t/trying-to-figure-out-what-testing-etc-libraries-i-should-be-using-for-julia/56429 "2021-03-06T21:09:18Z")

</div>

I’m trying to figure out what testing etc libraries I should be using for julia, especially for property-based testing. I’m aware of SafeTestSets.jl, TestSetExtensions.jl, ReferenceTests.jl, UnitTestDesign.jl, Randomize…

---

## [How to check if a program exists in a system using Julia?](https://discourse.julialang.org/t/how-to-check-if-a-program-exists-in-a-system-using-julia/19604)

<div class="topic-metadata">

**Author:** [@Zranz](https://discourse.julialang.org/u/Zranz)\
**Replies:** 16\
**Last updated:** [March 6, 2021, 8:08pm UTC](https://discourse.julialang.org/t/how-to-check-if-a-program-exists-in-a-system-using-julia/19604 "2021-03-06T20:08:08Z")

</div>

I wanted to query if a program is installed in a Linux system. From bash I would do something as type -p program or similar, as explained here. If I try something such as read(\`type -p program\`) within julia I get an er…

---

## [How to do in place concatenation of matrices](https://discourse.julialang.org/t/how-to-do-in-place-concatenation-of-matrices/56610)

<div class="topic-metadata">

**Author:** [@DhananjayAshok](https://discourse.julialang.org/u/DhananjayAshok)\
**Replies:** 6\
**Last updated:** [March 6, 2021, 8:00pm UTC](https://discourse.julialang.org/t/how-to-do-in-place-concatenation-of-matrices/56610 "2021-03-06T20:00:47Z")

</div>

Hi there. I have a matrix a that I want to maintain and accumilate more data points to over time. Assume I have a given below and I want to append b to it without having to do a new assignment on a. How do I do so? a = …

---

## [I'm looking at some nice AVX2 instructions, and I'm wondering if there is a path t](https://discourse.julialang.org/t/im-looking-at-some-nice-avx2-instructions-and-im-wondering-if-there-is-a-path-t/56624)

<div class="topic-metadata">

**Author:** [@BridgeBot](https://discourse.julialang.org/u/BridgeBot)\
**Replies:** 1\
**Last updated:** [March 6, 2021, 7:13pm UTC](https://discourse.julialang.org/t/im-looking-at-some-nice-avx2-instructions-and-im-wondering-if-there-is-a-path-t/56624 "2021-03-06T19:13:44Z")

</div>

I’m looking at some nice AVX2 instructions, and I’m wondering if there is a path to use this in Julia: https://stackoverflow.com/questions/66347928/simd-unpack-12-bit-fields-to-16-bit Note that the original poster on S…

---

## [Broadcasting with convert](https://discourse.julialang.org/t/broadcasting-with-convert/56619)

<div class="topic-metadata">

**Author:** [@bgroenks](https://discourse.julialang.org/u/bgroenks)\
**Replies:** 2\
**Last updated:** [March 6, 2021, 4:40pm UTC](https://discourse.julialang.org/t/broadcasting-with-convert/56619 "2021-03-06T16:40:49Z")

</div>

Would someone be able to explain to me briefly the mechanics of what should happen when you call convert.(T,a) on an array a? I would think that Base.similar(bc::Broadcasted{DestStyle}, ::Type{ElType}) would get calle…

---

## [ARDRegression function?](https://discourse.julialang.org/t/ardregression-function/56620)

<div class="topic-metadata">

**Author:** [@casv2](https://discourse.julialang.org/u/casv2)\
**Replies:** 2\
**Last updated:** [March 6, 2021, 4:37pm UTC](https://discourse.julialang.org/t/ardregression-function/56620 "2021-03-06T16:37:59Z")

</div>

I’m wondering whether there’s a native Julia “ARDRegression” (linear model regression with an ARD prior) available in a native Julia package somewhere. I haven’t been able to find any, and am having to call sklearn throu…

---

## [Can someone look over my code and identify the error (Linux)](https://discourse.julialang.org/t/can-someone-look-over-my-code-and-identify-the-error-linux/56617)

<div class="topic-metadata">

**Author:** [@Beta\_Raddish](https://discourse.julialang.org/u/Beta_Raddish)\
**Replies:** 7\
**Last updated:** [March 6, 2021, 4:29pm UTC](https://discourse.julialang.org/t/can-someone-look-over-my-code-and-identify-the-error-linux/56617 "2021-03-06T16:29:39Z")

</div>

In my experiments I have been working with the Collatz Conjecture. I thought about running it using multi-threading and it worked when I gave it low number but then seemed to topple over when I started giving it bigger r…

---

## [Is there a way to transpose an array of Any? I have a \`12×500 Array{Any, 2}\` I want](https://discourse.julialang.org/t/is-there-a-way-to-transpose-an-array-of-any-i-have-a-12x500-array-any-2-i-want/56607)

<div class="topic-metadata">

**Author:** [@BridgeBot](https://discourse.julialang.org/u/BridgeBot)\
**Replies:** 2\
**Last updated:** [March 6, 2021, 3:39pm UTC](https://discourse.julialang.org/t/is-there-a-way-to-transpose-an-array-of-any-i-have-a-12x500-array-any-2-i-want/56607 "2021-03-06T15:39:27Z")

</div>

Is there a way to transpose an array of Any? I have a 12×500 Array{Any,2} I want it to be 500x12. If I do transpose it throws an error. 500×12 LinearAlgebra.Transpose{Any,Array{Any,2}}: Error showing value of type Linea…

---

## [Easily make all variables 32 bit?](https://discourse.julialang.org/t/easily-make-all-variables-32-bit/56615)

<div class="topic-metadata">

**Author:** [@Ribeiro](https://discourse.julialang.org/u/Ribeiro)\
**Replies:** 2\
**Last updated:** [March 6, 2021, 1:49pm UTC](https://discourse.julialang.org/t/easily-make-all-variables-32-bit/56615 "2021-03-06T13:49:11Z")

</div>

Hello, is there some way to force all implicitly declared variables from 64 to 32 bit? I know I can explicitly declare stuff as 32bit and write numbers as 1.0f0. But I’d like to test the accuracy I lose in my 64 bit cod…

---

## [How to solve set of nonlinear fixed-point equations using Anderson acceleration in NLsolve.jl?](https://discourse.julialang.org/t/how-to-solve-set-of-nonlinear-fixed-point-equations-using-anderson-acceleration-in-nlsolve-jl/55994)

<div class="topic-metadata">

**Author:** [@liuyxpp](https://discourse.julialang.org/u/liuyxpp)\
**Replies:** 7\
**Last updated:** [March 6, 2021, 1:16pm UTC](https://discourse.julialang.org/t/how-to-solve-set-of-nonlinear-fixed-point-equations-using-anderson-acceleration-in-nlsolve-jl/55994 "2021-03-06T13:16:18Z")

</div>

I have a set of two nonlinear fixed-point equations like x = g1(x, y) y = g2(x, y) where x and y are n-dimensional arrays (n=1,2,3), length(x) and length(y) can be very large, e.g. 128x128x128 for 3D problem. How can I…

---

## [Using ColorSchemes](https://discourse.julialang.org/t/using-colorschemes/56604)

<div class="topic-metadata">

**Author:** [@tchebycheff](https://discourse.julialang.org/u/tchebycheff)\
**Replies:** 7\
**Last updated:** [March 6, 2021, 12:12pm UTC](https://discourse.julialang.org/t/using-colorschemes/56604 "2021-03-06T12:12:44Z")

</div>

How do I import all the color schemes from ColorSchemes in one go? Thanks. P.S. This code used to work before. using Plots, Random cs = collect(keys(colorschemes)) cp = first(Random.shuffle!(cs)) plot(x, y, palette =…

---

## [Is there a way to do "digital phosphor" type of plots for time series data?](https://discourse.julialang.org/t/is-there-a-way-to-do-digital-phosphor-type-of-plots-for-time-series-data/56490)

<div class="topic-metadata">

**Author:** [@klaff](https://discourse.julialang.org/u/klaff)\
**Replies:** 16\
**Last updated:** [March 6, 2021, 11:50am UTC](https://discourse.julialang.org/t/is-there-a-way-to-do-digital-phosphor-type-of-plots-for-time-series-data/56490 "2021-03-06T11:50:04Z")

</div>

Modern (digital) oscilloscopes usually perform a simulation of a phosphor-based CRT. These are described by various terms like digital phosphor, intensity grading, color temperature display, etc. These algorithms don’t …

---

## [How can I read an animated GIF? / Pluto](https://discourse.julialang.org/t/how-can-i-read-an-animated-gif-pluto/56606)

<div class="topic-metadata">

**Author:** [@StatisticalMouse](https://discourse.julialang.org/u/StatisticalMouse)\
**Replies:** 3\
**Last updated:** [March 6, 2021, 11:10am UTC](https://discourse.julialang.org/t/how-can-i-read-an-animated-gif-pluto/56606 "2021-03-06T11:10:32Z")

</div>

I would like to read in an animated GIF file, and get individual frames from it. I would also like to display it as an animation on a Pluto notebook.

---

## [The LinearAlgebra.jl package's \`inv()\` function does not preserve matrix symmetry](https://discourse.julialang.org/t/the-linearalgebra-jl-packages-inv-function-does-not-preserve-matrix-symmetry/56605)

<div class="topic-metadata">

**Author:** [@BridgeBot](https://discourse.julialang.org/u/BridgeBot)\
**Replies:** 4\
**Last updated:** [March 6, 2021, 9:47am UTC](https://discourse.julialang.org/t/the-linearalgebra-jl-packages-inv-function-does-not-preserve-matrix-symmetry/56605 "2021-03-06T09:47:43Z")

</div>

The LinearAlgebra.jl package’s inv() function does not preserve matrix symmetry. while true R = randn((3,3)) R\[2,1\] = R\[1,2\]; R\[3,1\] = R\[1,3\]; R\[2,3\]=R\[3,2\] @assert R == R' @assert inv(R) == inv(R)' end …

---

## [How to set verbose=false for \`Mosek\` in \`Convex.jl\`](https://discourse.julialang.org/t/how-to-set-verbose-false-for-mosek-in-convex-jl/46378)

<div class="topic-metadata">

**Author:** [@iHany](https://discourse.julialang.org/u/iHany)\
**Replies:** 4\
**Last updated:** [March 6, 2021, 8:18am UTC](https://discourse.julialang.org/t/how-to-set-verbose-false-for-mosek-in-convex-jl/46378 "2021-03-06T08:18:55Z")

</div>

I’m using Convex.jl to solve convex optimisation problems. In Convex.jl, I can use various solvers, but I cannot make the solver verbose=false only when using Mosek. How can I do this? Here’s an MWE: using Convex usi…

---

## [Collapsing data into the level of certain variables and taking averages](https://discourse.julialang.org/t/collapsing-data-into-the-level-of-certain-variables-and-taking-averages/56600)

<div class="topic-metadata">

**Author:** [@samerb](https://discourse.julialang.org/u/samerb)\
**Replies:** 1\
**Last updated:** [March 6, 2021, 5:28am UTC](https://discourse.julialang.org/t/collapsing-data-into-the-level-of-certain-variables-and-taking-averages/56600 "2021-03-06T05:28:13Z")

</div>

Let’s say I have a data frame with columns A1,A2,A3,…,An, where A1,A2,A3 are categorical variables and the rest are floats. I want to create a new data frame (or equivalent) with the following features: there is one ro…

[Previous page](https://discourse.julialang.org/latest.md?page=1467)

[Next page](https://discourse.julialang.org/latest.md?page=1469)
