What is the equivalent of str() in R for Julia

I often use str() whenever im exploring the outuut of some method in a package im getting familiar with, or i forget what a certain function was supposed to output, etc.

Is there some equivalent in Julia that can be applied to a wide range of objects/types?

1 Like
?dump 
2 Likes

For data frames there is also describe.

I’m not sure what str does, but you can get help on a function called f from the REPL with ?f.

For those not familiar with R, I would be nice to explain what that str() function does, that may increase the probability of someone helping!

1 Like
1 Like

I’ve used str quite a bit in R. It’s basically a command to view the internal structure of an object (i.e. its type, value, size, and so on…). In Julia, I’d say the equivalent commands would be a combination of dump and typeof.

1 Like