XML 63 R48.htm IDEA: XBRL DOCUMENT
v3.8.0.1

INVESTMENTS (Details) - Schedule of Financial information For Equity Method Investment - USD ($) $ in Thousands | 3 Months Ended | 12 Months Ended
--- | --- | ---
Jan. 31, 2018 | Oct. 31, 2017 | Jul. 31, 2017 | Apr. 30, 2017 | Jan. 31, 2017 | Oct. 31, 2016 | Jul. 31, 2016 | Apr. 30, 2016 | Jan. 31, 2018 | Dec. 31, 2017 | Jan. 31, 2017 | Dec. 31, 2016 | Jan. 31, 2016 | Dec. 31, 2015
INVESTMENTS (Details) - Schedule of Financial information For Equity Method Investment [Line Items] |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Net income |  | $ 19,053 | $ 13,168 | $ 2,941 | $ 4,544 | $ 12,381 | $ 8,938 | $ 8,176 | $ 2,838 | $ 39,706 |  | $ 32,333 |  | $ 31,436 |
Big River [Member] |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
INVESTMENTS (Details) - Schedule of Financial information For Equity Method Investment [Line Items] |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Net sales and revenue |  |  |  |  |  |  |  |  |  |  | $ 817,112 |  | $ 851,434 |  | $ 863,554
Gross profit |  |  |  |  |  |  |  |  |  |  | 60,259 |  | 88,841 |  | 85,451
Income from continuing operations |  |  |  |  |  |  |  |  |  |  | 32,243 |  | 63,292 |  | 62,193
Net income |  |  |  |  |  |  |  |  |  |  | $ 32,243 |  | $ 63,292 |  | 62,193
Patriot [Member] |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
INVESTMENTS (Details) - Schedule of Financial information For Equity Method Investment [Line Items] |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Net sales and revenue | [1] |  |  |  |  |  |  |  |  |  |  |  |  |  | 115,614
Gross profit | [1] |  |  |  |  |  |  |  |  |  |  |  |  |  | 14,424
Income from continuing operations | [1] |  |  |  |  |  |  |  |  |  |  |  |  |  | 11,100
Net income | [1] |  |  |  |  |  |  |  |  |  |  |  |  |  | $ 11,100
[1] | For Patriot, results are for the five month period ended May 31, 2015 as the Company's equity interest in Patriot was sold June 1, 2015.

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

X
- Definition The amount of gross profit (loss) reported by an equity method investment of the entity. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 205 -SubTopic 20 -Section 50 -Paragraph 7 -URI http://asc.fasb.org/extlink&oid=64827811&loc=SL51721683-107760 Reference 2: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 323 -SubTopic 10 -Section 50 -Paragraph 2 -URI http://asc.fasb.org/extlink&oid=66011266&loc=d3e33912-111571 Reference 3: 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(g)) -URI http://asc.fasb.org/extlink&oid=26873400&loc=d3e23780-122690 Reference 4: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 323 -SubTopic 10 -Section 50 -Paragraph 3 -Subparagraph (c) -URI http://asc.fasb.org/extlink&oid=66011266&loc=d3e33918-111571 + Details
Name: | us-gaap_EquityMethodInvestmentSummarizedFinancialInformationGrossProfitLoss
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Amount of income (loss) from continuing operations reported by an equity method investee. + References Reference 1: 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(g)) -URI http://asc.fasb.org/extlink&oid=26873400&loc=d3e23780-122690 Reference 2: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 205 -SubTopic 20 -Section 50 -Paragraph 7 -URI http://asc.fasb.org/extlink&oid=64827811&loc=SL51721683-107760 Reference 3: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 323 -SubTopic 10 -Section 50 -Paragraph 2 -URI http://asc.fasb.org/extlink&oid=66011266&loc=d3e33912-111571 Reference 4: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 323 -SubTopic 10 -Section 50 -Paragraph 3 -Subparagraph (c) -URI http://asc.fasb.org/extlink&oid=66011266&loc=d3e33918-111571 + Details
Name: | us-gaap_EquityMethodInvestmentSummarizedFinancialInformationIncomeLossFromContinuingOperationsBeforeExtraordinaryItems
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition The amount of revenue from sale of goods and services reduced by sales returns, allowances, and discounts reported by an equity method investment of the entity. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 205 -SubTopic 20 -Section 50 -Paragraph 7 -URI http://asc.fasb.org/extlink&oid=64827811&loc=SL51721683-107760 Reference 2: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 323 -SubTopic 10 -Section 50 -Paragraph 3 -Subparagraph (c) -URI http://asc.fasb.org/extlink&oid=66011266&loc=d3e33918-111571 + Details
Name: | us-gaap_EquityMethodInvestmentSummarizedFinancialInformationRevenue
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition The portion of profit or loss for the period, net of income taxes, which is attributable to the parent. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 230 -SubTopic 10 -Section 45 -Paragraph 28 -URI http://asc.fasb.org/extlink&oid=98514028&loc=d3e3602-108585 Reference 2: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 260 -SubTopic 10 -Section 50 -Paragraph 1 -URI http://asc.fasb.org/extlink&oid=6371337&loc=d3e3550-109257 Reference 3: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 942 -SubTopic 225 -Section S99 -Paragraph 1 -Subparagraph (SX 210.9-04(22)) -URI http://asc.fasb.org/extlink&oid=6879574&loc=d3e536633-122882 Reference 4: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 944 -SubTopic 225 -Section S99 -Paragraph 1 -Subparagraph (SX 210.7-04(18)) -URI http://asc.fasb.org/extlink&oid=6879464&loc=d3e573970-122913 Reference 5: 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(20)) -URI http://asc.fasb.org/extlink&oid=63488584&loc=d3e20235-122688 + Details
Name: | us-gaap_NetIncomeLoss
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Details
Name: | us-gaap_ScheduleOfEquityMethodInvestmentEquityMethodInvesteeNameAxis=rex_BigRiverMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_ScheduleOfEquityMethodInvestmentEquityMethodInvesteeNameAxis=rex_PatriotMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |