The advice is wise, despite appearances the extension really means nothing
except when it is assumed that it does. Try the raster or rgdal packages,
and the R-Sig-Geo mailing list with much more detail (as requested).

require(raster)
d <- raster(somefile)

d <- rasterFromXYZ(somefile)

require(rgdal)
d <- readGDAL(somefile)

All of these are worth trying, and reporting on in detail (read the posting
guide). If any of them work they are all achievable and/or provided with
more generic R tools, but your original query doesn't provide any
information at all to help.

Cheers, Mike.

On Thu, Mar 28, 2013 at 11:45 PM, Sarah Goslee <sarah.gos...@gmail.com>wrote:

> Shane, you replied to just to me rather than the list.
>
> I'm not familiar with geosoft, but the name suggests this might be a better
> question for r-sig-geo than here.
>
> Is the file binary or text? The internet suggests that it's a text
> format. Have you tried using www.rseek.org to search for import options?
> You could probably rig something up with scan().
>
> Sarah
>
> On Thursday, March 28, 2013, Shane Carey wrote:
>
> > It was created using a software called geosoft. Ive tried read.table
> > already, but no joy.
> >
> > Thanks
> >
> > On Thu, Mar 28, 2013 at 12:38 PM, Sarah Goslee 
> > <sarah.gos...@gmail.com<javascript:_e({},
> 'cvml', 'sarah.gos...@gmail.com');>
> > > wrote:
> >
> >> What created your xyz files? File extensions aren't unique. What kind of
> >> data do they contain?
> >>
> >> At least some kinds of xyz files are plain text and can be read with
> >> read.table.
> >>
> >> Sarah
> >>
> >>
> >> On Thursday, March 28, 2013, Shane Carey wrote:
> >>
> >>> Hi,
> >>>
> >>> Can R read in .xyz files? If so, what is the package,
> >>> thanks
> >>>
> >>> --
> >>> Shane
> >>>
> >>>
> >>>
>
> --
> Sarah Goslee
> http://www.stringpage.com
> http://www.sarahgoslee.com
> http://www.functionaldiversity.org
>
>         [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help@r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>



-- 
Michael Sumner
Hobart, Australia
e-mail: mdsum...@gmail.com

        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to