Reading a CSV using R I have a CSV file that, by all appearances, is totally normal except that each line ends with ,^M.  Not sure if that has anything to do with my issue or not, but I try reading in the file in R with the usual command 

df &lt;- read.csv('file.csv')

and then when I try to inspect it by typing df it prints out this result that I don't know how to interpret:

function (x, df1, df2, ncp, log = FALSE) 
{
    if (missing(ncp)) 
        .External(C_df, x, df1, df2, log)
    else .External(C_dnf, x, df1, df2, ncp, log)
}
&lt;bytecode: 0x000000000b083720&gt;
&lt;environment: namespace:stats&gt;


Anybody know what's going on here?  I've read in CSV files before and had no problem.
The ^M looks like the file came from a computer with a different OS from yours - maybe Unix and you're on Windows? Look on Google for a Unix2DOS utility, or maybe you can open it in Excel and then re-export to fix it.