XML 89 R74.htm IDEA: XBRL DOCUMENT
v3.8.0.1

RELATED PARTIES (Details) - USD ($) $ in Thousands | 12 Months Ended
--- | ---
Jan. 31, 2018 | Jan. 31, 2017 | Jan. 31, 2016
RELATED PARTIES (Details) [Line Items] |  |  |
Accounts Payable, Related Parties, Current | $ 900 | $ 1,700 |
Proceeds from Contributions from Affiliates | 918 |  |
Refined Coal [Member] |  |  |
RELATED PARTIES (Details) [Line Items] |  |  |
Related Party Transaction, Selling, General and Administrative Expenses from Transactions with Related Party | 1,800 |  |
Accrued Liabilities for Commissions, Expense and Taxes | 1,500 |  |
Proceeds from Contributions from Affiliates | 900 |  |
One Earth Energy And Nu Gen Energy [Member] |  |  |
RELATED PARTIES (Details) [Line Items] |  |  |
Costs and Expenses, Related Party | $ 154,500 | $ 148,500 | $ 148,200

X
- References No definition available. + Details
Name: | rex_RELATEDPARTIESDetailsLineItems
Namespace Prefix: | rex_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Amount for accounts payable to related parties. Used to reflect the current portion of the liabilities (due within one year or within the normal operating cycle if longer). + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 850 -SubTopic 10 -Section 50 -Paragraph 1 -URI http://asc.fasb.org/extlink&oid=6457730&loc=d3e39549-107864 Reference 2: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02.19(a)) -URI http://asc.fasb.org/extlink&oid=6877327&loc=d3e13212-122682 Reference 3: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 850 -SubTopic 10 -Section 50 -Paragraph 3 -URI http://asc.fasb.org/extlink&oid=6457730&loc=d3e39603-107864 Reference 4: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 850 -SubTopic 10 -Section 50 -Paragraph 4 -URI http://asc.fasb.org/extlink&oid=6457730&loc=d3e39622-107864 Reference 5: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 235 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.4-08.(k)(1)) -URI http://asc.fasb.org/extlink&oid=26873400&loc=d3e23780-122690 + Details
Name: | us-gaap_AccountsPayableRelatedPartiesCurrent
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition The carrying amount for commissions, taxes and other expenses that were incurred but unpaid as of the balance sheet date. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 944 -SubTopic 210 -Section S99 -Paragraph 1 -Subparagraph (SX 210.7-03.15) -URI http://asc.fasb.org/extlink&oid=6879938&loc=d3e572229-122910 + Details
Name: | us-gaap_AccruedLiabilitiesForCommissionsExpenseAndTaxes
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Costs of sales and operating expenses for the period incurred from transactions with related parties. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 225 -SubTopic 10 -Section S99 -Paragraph 2 -Subparagraph (SX 210.5-03.2) -URI http://asc.fasb.org/extlink&oid=63488584&loc=d3e20235-122688 + Details
Name: | us-gaap_CostsAndExpensesRelatedParty
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition The cash inflow from an entity that is affiliated with the entity by means of direct or indirect ownership. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 230 -SubTopic 10 -Section 45 -Paragraph 14 -URI http://asc.fasb.org/extlink&oid=98514028&loc=d3e3255-108585 + Details
Name: | us-gaap_ProceedsFromContributionsFromAffiliates
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Amount of selling, general and administrative expenses resulting from transactions, excluding transactions that are eliminated in consolidated or combined financial statements, with related party. + References No definition available. + Details
Name: | us-gaap_RelatedPartyTransactionSellingGeneralAndAdministrativeExpensesFromTransactionsWithRelatedParty
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Details
Name: | us-gaap_RelatedPartyTransactionsByRelatedPartyAxis=rex_RefinedCoalMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | dei_LegalEntityAxis=rex_OneEarthEnergyAndNuGenEnergyMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |