Message Boards Message Boards

0
|
3315 Views
|
1 Reply
|
1 Total Likes
View groups...
Share
Share this post:

How can I retrieve all properties for a function?

Posted 11 years ago

Hello!

For example, I want a list with all properties of a country:

CountryData["Sweden","--------------"]. I am interested in having a list with all possible elements there.

Thanks!:)

POSTED BY: Radu Matei

The documentation for CountryData lists the properties you can use. You can find that information under the "Details" section.

Alternatively, if you're familiar with how to use the new Entity framework in Mathematica 10, you can evaluate the following:

EntityValue["Country", "Properties"]

Queries can be made this way:

EntityValue[Entity["Country", "UnitedStates"], EntityProperty["Country", "AdultsObese"]
POSTED BY: Sean Clarke
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract