[R-SIG-Mac] import data Mac OS
dwinsemius at comcast.net
Mon May 2 16:25:51 CEST 2011
On May 2, 2011, at 7:22 AM, Thor Jensen wrote:
> Hello everyone,
> Thanks a ton to everyone on this thread. Apologies for breaking
> posting etiquette - this was my first post.
> I got it to work using a few different suggestions, the only thing is
> the my .csv file is appearing in R as separated by semicolons. The
> column headings are separated only by a period, preventing me from
> manipulating the data. For example:
Use an editor to change the period in the header to a semi-colon and
then use read.csv2()
> Message d'avis :
> In read.table(file = file, header = header, sep = sep, quote =
> quote, :
> readTableHeader a trouvé une ligne finale incomplète dans
> 1 200;180
> 2 180;170
> 3 160;130
> 4 210;200
>  200;180 180;170 160;130 210;200
> Levels: 160;130 180;170 200;180 210;200
> I have been using the above .csv file to learn the R program before
> importing a much larger data set, some three thousand rows long.
> Thanks again for all the inputs, and if I am using the thread
> incorrectly feel free to say so. Not intending to abuse the service.
> Many thanks,
> On Mon, May 2, 2011 at 3:28 PM, Thor Jensen <thor.jsn at gmail.com>
>> I am unable to write a pathway to .csv files saved on my computer. I
>> can get this to work on a windows machine, but the mac returns a
>> message saying the file does not exist. Any tips on how to import
>> data on mac's? For example, the below line was unsuccesful.
>> read.csv(file="Macintosh HD:Users:ThorJ:Desktop:heightweight.csv"
>> Many thanks,
> R-SIG-Mac mailing list
> R-SIG-Mac at r-project.org
David Winsemius, MD
West Hartford, CT
More information about the R-SIG-Mac