[GRASS-user] Fuzzy K-mean

Tom wrote:

I would recommend a combination of GRASS and R (http://cran.r-
project.org/). R has fuzzy K-mean cluster capability, using
the R addon package spgrass6 to read/write to/from GRASS and R.

see Roger's tutorial here:
http://grasswiki.osgeo.org/wiki/R_statistics

Hamish

I have been trying to work within the GRASS70 Command Line to interface with R. When I try to read in the rasters I get the following error:

In deleteDataset(DS) :
  Failed to delete dataset: C:\Users\....\Desktop\grass_data\PERMANENT\.tmp\unknown\nomralized_height

I navigate to the .tmp file and delete the rasters manually but I still get the same warning.

I am noticing that the R grass interface runs R in 32 bit. Is there a command to run R in 64 bit.

I notice when I run the stand alone R 64bit and use the interface to grass command:

initGRASS("C:/Program Files (x86)/GRASS GIS 7.0.svn", gisDbase="C:/Users/brown782/Desktop",location="grass_data",mapset ="PERMANENT", override=T)

R will give aforementioned error but it does read the rasters and I can do a whole suite of summary statistics.

I still have not been able to get the Fuzzy K-mean to run because the EMCluster package requires the data to be in a matrix and when I do this I am getting some strange Dimensions in R.

Any advice would as always be much appreciated

Sincerely,

Robert Brown

----- Original Message -----
From: "Hamish" <hamish_b@yahoo.com>
To: "Robert A Brown" <brown782@purdue.edu>, "Thomas Adams" <tea3rd@gmail.com>
Cc: grass-user@lists.osgeo.org
Sent: Thursday, April 11, 2013 8:53:42 PM
Subject: Re: [GRASS-user] Fuzzy K-mean

Tom wrote:

I would recommend a combination of GRASS and R (http://cran.r-
project.org/). R has fuzzy K-mean cluster capability, using
the R addon package spgrass6 to read/write to/from GRASS and R.

see Roger's tutorial here:
http://grasswiki.osgeo.org/wiki/R_statistics

Hamish

I have been trying to work within the GRASS70 Command Line to interface with

R. When I try to read in the

rasters I get the following error:

have a look to http://grasswiki.osgeo.org/wiki/R_statistics#GRASS_7_Usage

In WinGRASS 7 (standalone installer) the Windows batchfiles for use with R
are now integrated for a smooth WinGRASS-R-integration. The
R-installation-path is dynamically loaded into PATH.

Start WinGRASS 7, bring the WinGRASS-windows console in front and type R for
opening a R-session (command line mode) inside a GRASS-session.

-----
best regards
Helmut
--
View this message in context: http://osgeo-org.1560.x6.nabble.com/red-square-around-node-topology-information-tp5046075p5047847.html
Sent from the Grass - Users mailing list archive at Nabble.com.