Dated
詳細
- Dated[obj,date]の obj は,Entityオブジェクト,EntityPropertyオブジェクト,あるいは実体特性を表す文字列でよい.
- Dated[obj,year]の年(year)は整数で与えることができる.
- Dated[obj,date]の date はDateObjectを使って指定される.
- Dated[obj,All]を使ってデータが要求された場合は時系列が返されることが多い.
例題
すべて開く すべて閉じる例 (3)
Dated[Entity["Country", "France"], 1985]Dated[Entity["Country", "France"], 1985]["Population"]DatedはEntityProperty式と一緒に使うこともできる:
Dated[EntityProperty["City", "PerCapitaIncome"], DateObject[{2010}, "Year", "Gregorian", -6.]]Dated[EntityProperty["City", "PerCapitaIncome"], DateObject[{2010}, "Year", "Gregorian", -6.]][Entity["City", {"Chicago", "Illinois", "UnitedStates"}]]文字列特性名はDatedで囲むこともできる:
EntityValue[Entity["Planet", "Mars"], Dated["DistanceFromEarth", DateObject[{1985, 8, 4}, "Day", "Gregorian", -6.]]]スコープ (2)
Datedが実体に使われると,日付限定子が付いていない特性は日付パラメータを無視する:
EntityValue[Dated[Entity["Planet", "Mars"], DateObject[{1986, 10, 13}, "Day", "Gregorian", -6.]], "Mass"]Datedが日付限定子のない特性に使われると,Missing[…]が返される:
EntityValue[Entity["Planet", "Mars"], Dated["Mass", DateObject[{1986, 10, 13}, "Day", "Gregorian", -6.]]]Datedが実体と特性の両方に使われると,特性に関連付けられた日付が使われる:
EntityValue[Dated[Entity["Star", "HIP44511"], DateObject[{2010}, "Year", "Gregorian", -6.]], Dated[EntityProperty["Star", "DistanceFromSun"], DateObject[{1990}, "Year", "Gregorian", -6.]]]一般化と拡張 (2)
複数の日付と関連付けられた特性を取得することで,ある企業の複数の日付における純利益を取得する:
years = DateRange[DateObject[{2017}], DateObject[{2022}], "Years"];Entity["Company", "Apple::5zkjq"][Dated[EntityProperty["Company", "NetIncome"], #]& /@ years]複数の日付実体についての純利益をリクエストして同じ結果を得る:
EntityValue[Dated[Entity["Company", "Apple::5zkjq"], #]& /@ years, EntityProperty["Company", "NetIncome"]]wind2010 = Dated[EntityProperty["Country", "ElectricityWind"], 2010];EntityClass["Country", wind2010 -> TakeLargest[5]][wind2010, "Association"]アプリケーション (10)
EntityList[EntityClass["Planet", "DistanceFromEarth" -> TakeSmallest[2]]]EntityList[EntityClass["Planet", Dated["DistanceFromEarth", DateObject[{2023, 2, 2}, "Day"]] -> TakeSmallest[2]]]2023年の1月から10月までの,地球から水星および火星までの距離を求める:
EntityValue[{Entity["Planet", "Mercury"], Entity["Planet", "Mars"]}, Dated["DistanceFromEarth", #]& /@ DateRange[DateObject[{2023, 1}, "Month"], DateObject[{2023, 10}, "Month"], "Months"], "EntityAssociation"]ListPlot[%, Joined -> True]2022年1月1日におけるアメリカ合衆国の小売の売上高を取得する:
Dated[Entity["Country", "UnitedStates"], DateObject[{2022, 1, 1}]]["RetailSales"]2020年におけるアメリカ合衆国のM1マネーサプライとM2マネーサプライを取得する:
Dated[Entity["Country", "UnitedStates"], 2020][{EntityProperty["Country", "MoneySupply", {"Component" -> "M1"}], EntityProperty["Country", "MoneySupply", {"Component" -> "M2"}]}]1965年から2000年までのアメリカ合衆国の実質GDP年間成長率のプロット:
DateListPlot[Entity["Country", "UnitedStates"][Dated[EntityProperty["Country", "GrossDomesticProduct", {"Adjustment" -> "Real", "TimeSeriesOperator" -> "AnnualizedChangeRate"}], Interval[{DateObject[{1965}, "Year"], DateObject[{2000}, "Year"]}]]]]1978年からのアメリカ合衆国の債務をアメリカ合衆国のGDPで割ったプロットを作成する:
DateListPlot[Entity["Country", "UnitedStates"][Dated[EntityProperty["Country", "GrossDomesticProduct"], Interval[{DateObject[{1978}, "Year"], Today}]]] / Entity["Country", "UnitedStates"][Dated[EntityProperty["Country", "FederalDebt"], Interval[{DateObject[{1978}, "Year"], Today}]]]]1995年のアメリカ合衆国の鉱工業生産を部門別に円グラフで表す:
sectors = {"FinalProducts", "ConsumerGoods", "BusinessEquipment", "Manufacturing", "Materials", "Mining", "ElectricGasUtilities"};
PieChart[Dated[Entity["Country", "UnitedStates"], 1995][EntityProperty["Country", "IndustrialProduction", {"ProductionSector" -> #}]& /@ sectors], ChartLegends -> sectors]1996年3月におけるイリノイ州とウィスコンシン州の失業率を比較する:
Dated[{Entity["AdministrativeDivision", {"Illinois", "UnitedStates"}], Entity["AdministrativeDivision", {"Wisconsin", "UnitedStates"}]}, DateObject[{1996, 3}]]["CivilianUnemploymentRate", "Association"]2010年からの,フェニックス,セントルイス,マイアミの住宅価格のプロットを作成する:
With[{cities = {Entity["City", {"Phoenix", "Arizona", "UnitedStates"}], Entity["City", {"SaintLouis", "Missouri", "UnitedStates"}], Entity["City", {"Miami", "Florida", "UnitedStates"}]}}, DateListPlot[Dated[cities, Interval[{DateObject[{2010}], Today}]]["MedianHomeListingPrice"], PlotLegends -> cities]]2020年のアメリカ合衆国中西部の州の1人当たGDPの地域値プロットを作成する:
GeoRegionValuePlot[EntityList@EntityClass["AdministrativeDivision", "USStatesMidwest"] -> Dated[EntityProperty["AdministrativeDivision", "GrossDomesticProduct", {"Modifier" -> "PerCapita"}], 2020]]関連するガイド
-
▪
- 日付と時刻 ▪
- 社会経済・人口統計データ ▪
- 知識の表現と利用 ▪
- 時系列と事象系列のデータソース
テキスト
Wolfram Research (2016), Dated, Wolfram言語関数, https://reference.wolfram.com/language/ref/Dated.html.
CMS
Wolfram Language. 2016. "Dated." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/Dated.html.
APA
Wolfram Language. (2016). Dated. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/Dated.html
BibTeX
@misc{reference.wolfram_2026_dated, author="Wolfram Research", title="{Dated}", year="2016", howpublished="\url{https://reference.wolfram.com/language/ref/Dated.html}", note=[Accessed: 07-September-2026]}
BibLaTeX
@online{reference.wolfram_2026_dated, organization={Wolfram Research}, title={Dated}, year={2016}, url={https://reference.wolfram.com/language/ref/Dated.html}, note=[Accessed: 07-September-2026]}