Quantcast
Channel: Active questions tagged crash - Stack Overflow
Viewing all articles
Browse latest Browse all 7190

Data Frame Causing R to Crash

$
0
0

I have a list of data frames which each contain 1 or 2 rows. There seems to be something inherent about specific of these data frames that causes R to crash. All data frames have the same columns. For data frame in index 751, I can access class, colnames, number of rows, and express the structure. To the console. For the data frame at index 752 I can see these elements and verify that it is a data frame, but if I try to see the output using head() or manipulate the data frame, both R and R studio will immediately crash. Since there is no error, it is very difficult to provide an replicable example. Any idea what could be causing this to happen?

> df[[751]] %>% ungroup() %>% data.frame() %>% class()[1] "data.frame"> df[[751]] %>% ungroup() %>% data.frame() %>% colnames() [1] "leg.id"            "arb_identifier"    "SecurityID"        "date"              "UnderlyingClose"   "UnderlyingOpen"    [7] "TotalReturn"       "ReferenceExchange" "OptionID"          "Expiration"        "CallPut"           "Strike"           [13] "Volume"            "OpenInterest"      "ImpliedVolatility" "Delta"             "Gamma"             "Vega"             [19] "Theta"             "AdjustmentFactor"  "BestBid"           "BestOffer"         "Last"              "LastTradeDate"    [25] "T"                 "stale"             "old"               "roll"              "n_opt_shares"      "delta.hedge"      [31] "OrigBid"           "OrigOffer"         "PXRecov"           "acquisition_date"  "tranche_id"       > df[[751]] %>% ungroup() %>% data.frame() %>% NROW()[1] 1> df[[751]] %>% ungroup() %>% data.frame() %>% head()           leg.id arb_identifier SecurityID       date UnderlyingClose UnderlyingOpen TotalReturn ReferenceExchange  OptionID Expiration1 L_P_OTM5.0_93_0              1     506528 2005-12-20          5547.9         5539.8 0.001462164               -99 150042133 2006-01-20  CallPut        Strike        Volume OpenInterest ImpliedVolatility      Delta        Gamma     Vega     Theta AdjustmentFactor BestBid1       P 2.581493e-320 1.167971e-320        17155         0.1427761 -0.0636712 0.0005403475 201.6763 -158.4806                0     6.5  BestOffer Last LastTradeDate       T stale   old  roll n_opt_shares delta.hedge OrigBid OrigOffer   PXRecov acquisition_date tranche_id1       6.5  6.5          <NA> 31 days FALSE FALSE FALSE         2499         Inf      35        35 0.1857143       2005-10-03    9381673> df[[752]] %>% ungroup() %>% data.frame() %>% class()[1] "data.frame"> df[[752]] %>% ungroup() %>% data.frame() %>% colnames() [1] "leg.id"            "arb_identifier"    "SecurityID"        "date"              "UnderlyingClose"   "UnderlyingOpen"    [7] "TotalReturn"       "ReferenceExchange" "OptionID"          "Expiration"        "CallPut"           "Strike"           [13] "Volume"            "OpenInterest"      "ImpliedVolatility" "Delta"             "Gamma"             "Vega"             [19] "Theta"             "AdjustmentFactor"  "BestBid"           "BestOffer"         "Last"              "LastTradeDate"    [25] "T"                 "stale"             "old"               "roll"              "n_opt_shares"      "delta.hedge"      [31] "OrigBid"           "OrigOffer"         "PXRecov"           "acquisition_date"  "tranche_id"       > df[[752]] %>% ungroup() %>% data.frame() %>% NROW()[1] 1

Viewing all articles
Browse latest Browse all 7190

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>