1

我有一个大型数据集,其中包括特定产品在各个商店的销售价格。我需要找到发生 80% 销售额的最低和最高价格。例如,对于以下数据,最低为 1.1,最高为 1.9:

价格销售
----- -----
1 2
1.1 2
1.2 2
1.4 3
1.5 4
1.6 2
1.7 2
1.9 1
2.2 1
2.5 1

任何人都可以提出一种方法来做到这一点吗?

谢谢

4

1 回答 1

1

MySQL is a database not well suited to numerical methods. R is one of many programmable statistical suites that can source data from databases such as MySQL.

The RODBC package is probably a good starting point.

于 2011-06-06T08:56:59.880 回答