Quantcast
Channel: Active questions tagged r - Stack Overflow
Viewing all articles
Browse latest Browse all 206473

Turning closure output into dataframe in R

$
0
0

The following code generates an object of type 'closure'.

function (x, df1, df2, ncp, log = FALSE) 
{
  if (missing(ncp)) 
    .Call(C_df, x, df1, df2, log)
  else .Call(C_dnf, x, df1, df2, ncp, log)
}

The output looks like a typical dataframe. However, I cannot manipulate it like a dataframe since it's a function. Is there a way for me to take the output and turn it into a dataframe that I can manipulate and clean?


Viewing all articles
Browse latest Browse all 206473

Trending Articles



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