問題タブ [lexicographic-ordering]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票する
1 に答える
899 参照

r - Rのデータフレーム内の非数値および数値のソート

のデータ フレーム内の数値以外の値と数値の並べ替えについてサポートが必要ですR。次の名前の 195 行と列を持つデータ フレームがあります。

Country.name, Country.code, Birth.rate, Internet.users, and Income.Group

私の課題は、元のデータ フレームの最初の 30 行を収入グループで昇順に並べ替え、その後にインターネット ユーザーを降順に並べた新しいデータ フレームを作成することです。

所得グループには次のカテゴリがあります。

high incomeupper middle incomelower middle incomeおよびlow income

Internet.users数値です。

助けてください!