+ Reply to Thread
Results 1 to 2 of 2

Thread: Problem with R, can't open a file !

  1. #1
    Points: 9,628, Level: 65
    Level completed: 93%, Points required for next Level: 22
    Awards:
    Downloads

    Posts
    15
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Problem with R, can't open a file !



    Hi,

    I'm trying to open a ".csv" file in R but I have the following error message:
    Error in do.call("data.frame", rval) :
    variable names are limited to 256 bytes


    What does this mean? Could somebody, please, knows what's the problem and how to resolve it?

    The size of file is ~ 53 Mo ! and I'm using vista as OS.

    Thank you in advance.

  2. #2
    TS Contributor
    Points: 5,565, Level: 48
    Level completed: 8%, Points required for next Level: 185

    Location
    St Albans, UK
    Posts
    257
    Thanks
    0
    Thanked 7 Times in 5 Posts

    Are you using a recent version are of R?
    With R 2.7.2 I was able to load a csv file with column names longer than 256 characters (tested with up to 312). However, showing the object (e.g. dat <enter>) did give the following error message:
    Error in do.call("data.frame", rval) : symbol print-name too long
    although str(dat) works ok.

    Do you actually have long column names in the csv file, if so you could try shortening them to less than 256 characters. If your column names are not long it may be that the csv file is not using comma separators. It would be helpful to have some more information about the structure or your csv file and if possible post a small example file that gives the same error.

+ Reply to Thread

Similar Threads

  1. problem with dat file
    By divishoot in forum Stata
    Replies: 1
    Last Post: 04-04-2011, 04:38 AM
  2. Open courseware?
    By Salohcin in forum Probability
    Replies: 1
    Last Post: 01-30-2011, 02:45 PM
  3. Replies: 2
    Last Post: 12-02-2010, 06:19 AM
  4. Replies: 2
    Last Post: 08-16-2010, 11:42 AM
  5. open output
    By Boa in forum Statistics
    Replies: 2
    Last Post: 05-31-2010, 08:33 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts








Advertise on Talk Stats