How do I manipulate one column of a list from within a larger dataset? For example:
In[333]:= families = <|
"smith" -> <|"members" -> 26, "mean income" -> 95000,
"ratios" -> {<|"height" -> 1.5, "weight" -> 74|>, <|
"height" -> 1.8, "weight" -> 83|>, <|"height" -> 1.9,
"weight" -> 91|>, <|"height" -> 2.1, "weight" -> 105|>}|>,
"jones" -> <|"members" -> 32, "mean income" -> 84000,
"ratios" -> {<|"height" -> 1.5, "weight" -> 73|>, <|
"height" -> 1.7, "weight" -> 84|>, <|"height" -> 1.9,
"weight" -> 98|>, <|"height" -> 2.1, "weight" -> 115|>}|>|>
I can extract the table of smith family heights and weights with:
Dataset[families["smith", "ratios"]]
and I can multiply ALL of this with something like:
Dataset[2*families["smith", "ratios"]]
But how do I output a similar dataset, after multiplying only the height by 2?