Re: [R] Formatted Data File Question for Clustering -Quickie Project

From: Vladimir Eremeev <>
Date: Thu, 14 Jun 2007 00:41:41 -0700 (PDT)

The "R Data Import/Export" guide was mentioned already, it contains everything you should know about data exchange between R and other software.

In case it says nothing about dates, try as.Date() and strftime(). For your example below,
  as.Date("1/31/1994",format="%m/%d/%Y") works.

ngottlieb wrote:
> I am trying to learn how to format Ascii data files for scan or read
> into R.
> Precisely for a quickie project, I found some code (at end of this
> email) to do exactly what I need:
> To cluster and graph a dendrogram from package (stats).
> I am stuck on how to format a text file to run the script.
> I looked at the dataset USArrests (which would be replaced by my data
> and labels) using UltraEdit. That data appears to be in binary format
> and I would simply like a readable ASCII text file.
> How can I:
> A) format this data to a file for the script below?
> B) I would like to use squared Euclidean distance, can hclust support
> this?
> Thanks,
> Neil Gottlieb
> Here is sub-set example of my data set, return series to cluster: 13
> cases by 36 observations):
> Month Convertible Arbitrage Dedicated Short Bias Emerging
> Markets
> 1/31/1994 0.004 -0.016 0.105
> 2/28/1994 0.002 0.020 -0.011
> 3/31/1994 -0.010 0.072 -0.046
> [skip]

View this message in context:
Sent from the R help mailing list archive at

______________________________________________ mailing list
PLEASE do read the posting guide
and provide commented, minimal, self-contained, reproducible code.
Received on Thu 14 Jun 2007 - 07:50:03 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Thu 14 Jun 2007 - 08:31:57 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.