Mathematica Asked by HJensen on April 19, 2021
I am trying to look up data of entities, but I imagine I’m not doing it right, or have misunderstood the structure.
Here, I try the extract the values of the new SI defining constants, which are embedded deeply in the structure of the Entity[“PhysicalConstants”]. However, the structure is not real Associations, so you can “index” your way to the information, but I had to use Lookup. Also, not all entities in the list have the property/value I look for, so some filtering is necessary.
My best try is
siconstants = {#[[1]], Lookup[#[[2]], "Value"]} &
/@ Cases[{#, Lookup[EntityValue[#, "Values"], "CODATA2017RecommendedRevisedSI"] } &
/@ EntityList["PhysicalConstant"], {_, _List}]
but there must be a simpler and more correct way(?)
Get help from others!
Recent Questions
Recent Answers
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP