[R] write.table command

2006-03-28 Thread Abd Rahman Kassim

Dear All,


I'm trying to save  a dataframe using write.table command. It works, but when I 
retrieved, there's an error message as shown below:

   write.table(soil.dat,file=C:/soil.rdata)
   load(C:/soil.rdata)
Error: bad restore file magic number (file may be corrupted)-- no data loaded


I can figure out the error message. Any assistance to solve the problem is very 
much appreciated.

Regards.

Abd. Rahman Kassim, PhD
Forest Management  Ecology Program
Forestry  Conservation Division
Forest Research Institute Malaysia
Kepong 52109 Selangor
Malaysia

Fax: 603-62729852
Tel: 603-62797179



*


*
[[alternative HTML version deleted]]

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


Re: [R] write.table command

2006-03-28 Thread Abd Rahman Kassim

Dear Simon,

Thanks for the remarks. I had tried read.table and it works.

ARK
- Original Message - 
From: Simon Blomberg [EMAIL PROTECTED]
To: Abd Rahman Kassim [EMAIL PROTECTED]; R-project help 
r-help@stat.math.ethz.ch
Sent: Tuesday, March 28, 2006 4:49 PM
Subject: Re: [R] write.table command



 The help file for load says that it is to be used for objects saved using 
 the save command. Perhaps you should try read.table.

 Cheers,

 Simon.

 Abd Rahman Kassim wrote:
 Dear All,


 I'm trying to save  a dataframe using write.table command. It works, but 
 when I retrieved, there's an error message as shown below:


   write.table(soil.dat,file=C:/soil.rdata)
   load(C:/soil.rdata)

 Error: bad restore file magic number (file may be corrupted)-- no data 
 loaded


 I can figure out the error message. Any assistance to solve the problem 
 is very much appreciated.

 Regards.

 Abd. Rahman Kassim, PhD
 Forest Management  Ecology Program
 Forestry  Conservation Division
 Forest Research Institute Malaysia
 Kepong 52109 Selangor
 Malaysia

 Fax: 603-62729852
 Tel: 603-62797179



 *


 *
 [[alternative HTML version deleted]]

 __
 R-help@stat.math.ethz.ch mailing list
 https://stat.ethz.ch/mailman/listinfo/r-help
 PLEASE do read the posting guide! 
 http://www.R-project.org/posting-guide.html




 -- 
 Simon Blomberg, B.Sc.(Hons.), Ph.D, M.App.Stat.
 Centre for Resource and Environmental Studies
 The Australian National University
 Canberra ACT 0200
 Australia
 T: +61 2 6125 7800 email: Simon.Blomberg_at_anu.edu.au
 F: +61 2 6125 0757
 CRICOS Provider # 00120C



 *
 Outgoing mail is certified Virus Free.
 Checked by TrendMicro Interscan Messaging Security.
 For any enquiries, please contact FRIM IT Department.
 *

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


Re: [R] write.table command

2006-03-28 Thread Abd Rahman Kassim

Dear Alexander,

Thanks for the useful information.

ARK
- Original Message - 
From: Alexander Nervedi [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, March 28, 2006 7:19 PM
Subject: RE: [R] write.table command



 Hi!

 Either use write.table() to output a data matrix and read.table() to 
 retrieve it .. or use save(obj,...) to save R object and then use load to 
 call it back into an R session.

 check out the help on both
 ?read.table
 ?save

 hope that helps

 ul-nadi.


From: Abd Rahman Kassim [EMAIL PROTECTED]
To: r-help@stat.math.ethz.ch
Subject: [R] write.table command
Date: Wed, 29 Mar 2006 08:43:16 -0800


Dear All,


I'm trying to save  a dataframe using write.table command. It works, but 
when I retrieved, there's an error message as shown below:

write.table(soil.dat,file=C:/soil.rdata)
load(C:/soil.rdata)
Error: bad restore file magic number (file may be corrupted)-- no data 
loaded


I can figure out the error message. Any assistance to solve the problem is 
very much appreciated.

Regards.

Abd. Rahman Kassim, PhD
Forest Management  Ecology Program
Forestry  Conservation Division
Forest Research Institute Malaysia
Kepong 52109 Selangor
Malaysia

Fax: 603-62729852
Tel: 603-62797179



*


*
 [[alternative HTML version deleted]]

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! 
http://www.R-project.org/posting-guide.html

 _

 http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/



 *
 Outgoing mail is certified Virus Free.
 Checked by TrendMicro Interscan Messaging Security.
 For any enquiries, please contact FRIM IT Department.
 *

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


[R] Adding axis limit to log-log plot

2006-03-16 Thread Abd Rahman Kassim


Dear All,

I've tried to add axis limit ( e.g. ylim=c(0,50)) to the log-log plot, but it 
turn out to be error (see below). Any solution is much appreciated.

 plot(maxsd$tph,maxsd$qdbh,log=xy,xlab=Stand density(trees per 
 ha),ylab=Quadratic mean dbh (cm),ylim=c(0,50))
Error in plot.window(xlim, ylim, log, asp, ...) :
Infinite axis extents [GEPretty(0,1.#INF,5)]
In addition: Warning message:
Nonfinite axis limits [GScale(-1.#INF,1.69897,2, .); log=1]


Thanks

Abd. Rahman Kassim, PhD
Forest Management  Ecology Program
Forestry  Conservation Division
Forest Research Institute Malaysia
Kepong 52109 Selangor
Malaysia

Fax: 603-62729852
Tel: 603-62797179



*


*
[[alternative HTML version deleted]]

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


Re: [R] Adding axis limit to log-log plot

2006-03-16 Thread Abd Rahman Kassim

Dear Jim,

Thanks for the suggestion. It works when I change the limit to non-zero.

Abd. Rahman Kassim

  - Original Message -
  From: jim holtman
  To: Abd Rahman Kassim
  Cc: r-help@stat.math.ethz.ch
  Sent: Thursday, March 16, 2006 7:49 PM
  Subject: Re: [R] Adding axis limit to log-log plot


  You need to come up some better limits.

  log(0)  - -Inf

  
  On 3/16/06, Abd Rahman Kassim [EMAIL PROTECTED] wrote:


Dear All,

I've tried to add axis limit ( e.g. ylim=c(0,50)) to the log-log plot, but 
it turn out to be error (see below). Any solution is much appreciated.

 plot(maxsd$tph,maxsd$qdbh,log=xy,xlab=Stand density(trees per 
ha),ylab=Quadratic mean dbh (cm),ylim=c(0,50))
Error in plot.window(xlim, ylim, log, asp, ...) :
   Infinite axis extents [GEPretty(0,1.#INF,5)]
In addition: Warning message:
Nonfinite axis limits [GScale(-1.#INF,1.69897,2, .); log=1]


Thanks

Abd. Rahman Kassim, PhD
Forest Management  Ecology Program
Forestry  Conservation Division
Forest Research Institute Malaysia
Kepong 52109 Selangor
Malaysia

Fax: 603-62729852
Tel: 603-62797179



*


*
   [[alternative HTML version deleted]]

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! 
http://www.R-project.org/posting-guide.html




  --
  Jim Holtman
  Cincinnati, OH
  +1 513 646 9390 (Cell)
  +1 513 247 0281 (Home)

  What the problem you are trying to solve? 
*
Outgoing mail is certified Virus Free.
Checked by TrendMicro Interscan Messaging Security.
For any enquiries, please contact FRIM IT Department.
*
  


*


*
[[alternative HTML version deleted]]

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


[R] Plot graph with different symbol size

2006-03-02 Thread Abd Rahman Kassim


  Dear All,

  This is regarding symbols function. I'm preparing a graph for different 
species in a plot (based on the coordinate x  y). I  used inches in symbol 
function to indicate the different symbols size based on the size class (in 
diameter of tree trunk). The problem is that the symbol size is arrange in 
descending order. So the symbol for two species with different number of size 
class will have the same symbol size for the largest of each species diameter 
class (descending order). If the species A has 3 size class (e.g 10,20,30); and 
another species B has 5 size class (10,20,30,40,50), the symbols size display 
is the same for species A is the same as symbol size for species B for size 
class 30,40,50. How can I solve the problem?

  Example of my program code:
  
  dbhcat=cut(spdata$dbh,breaks=c(10,50,100,300,600,10),labels=c(1,2,3,4,5))
  
symbols(spdata$gx,spdata$gy,dbhcat,inches=c(0.05,0.1,1.5,2.0,2.5,3.0),add=TRUE)
  

  Abd. Rahman Kassim, PhD
  Forest Management  Ecology Program
  Forestry  Conservation Division
  Forest Research Institute Malaysia
  Kepong 52109 Selangor
  Malaysia

  Fax: 603-62729852
  Tel: 603-62797179

*


*
[[alternative HTML version deleted]]

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


[R] Plotting contour filled.contour in one graph

2006-02-12 Thread Abd Rahman Kassim

Dear All,

I have a question on overlaying a filled.contour (e.g. on soil properties data) 
and contour (by elevation) in one graph. Both have the same z matrix dimension. 
I'm able to overlay both graph, but the plots dimension did not overlap well on 
the same plots. How can I have both filled.contour and contour on the same 
graph? The commands that I have written are as follows:

filled.contour(0:15,0:10,t(matrix(Total.C,nrow=11,ncol=16)))
contour(0:15,0:10,as.matrix(elev),add=T)

Thanks for anay assistance.

Regards.


Abd Rahman Kassim
Forest Research Institute Malaysia
Kepong 52109
Selangor, MALAYSIA

*


*
[[alternative HTML version deleted]]

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


Re: [R] Plotting contour filled.contour in one graph

2006-02-12 Thread Abd Rahman Kassim

Dear Romain,

Thanks a lot for the suggested website and program code. I got it run.

Thanks.

Abd. Rahman Kassim
- Original Message - 
From: Romain Francois [EMAIL PROTECTED]
To: Abd Rahman Kassim [EMAIL PROTECTED]
Cc: r-help@stat.math.ethz.ch
Sent: Sunday, February 12, 2006 4:27 AM
Subject: Re: [R] Plotting contour  filled.contour in one graph



 Le 13.02.2006 05:12, Abd Rahman Kassim a écrit :
 Dear All,

 I have a question on overlaying a filled.contour (e.g. on soil properties 
 data) and contour (by elevation) in one graph. Both have the same z 
 matrix dimension. I'm able to overlay both graph, but the plots dimension 
 did not overlap well on the same plots. How can I have both 
 filled.contour and contour on the same graph? The commands that I have 
 written are as follows:

 filled.contour(0:15,0:10,t(matrix(Total.C,nrow=11,ncol=16)))
 contour(0:15,0:10,as.matrix(elev),add=T)

 Thanks for anay assistance.

 Regards.


 Abd Rahman Kassim
 Forest Research Institute Malaysia
 Kepong 52109
 Selangor, MALAYSIA

 Hi,

 The trick is to use the argument plot.axes of filled.contour
 There are examples of that in ?filled.contour

 See also : 
 http://addictedtor.free.fr/graphiques/RGraphGallery.php?graph=128

 Romain

 -- 
 visit the R Graph Gallery : http://addictedtor.free.fr/graphiques
 mixmod 1.7 is released : http://www-math.univ-fcomte.fr/mixmod/index.php
 +---+
 | Romain FRANCOIS - http://francoisromain.free.fr   |
 | Doctorant INRIA Futurs / EDF  |
 +---+



 *
 Outgoing mail is certified Virus Free.
 Checked by TrendMicro Interscan Messaging Security.
 For any enquiries, please contact FRIM IT Department.
 *

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


Re: [R] Plotting contour filled.contour in one graph

2006-02-12 Thread Abd Rahman Kassim

Dear Spencer,

Thanks for the assistance and the website. It will be very helpful for my 
future code programming on graph in R.

Abd. Rahman

- Original Message - 
From: Spencer Graves [EMAIL PROTECTED]
To: Michael Prager [EMAIL PROTECTED]
Cc: Gabor Grothendieck [EMAIL PROTECTED]; R Help List 
r-help@stat.math.ethz.ch; Abd Rahman Kassim [EMAIL PROTECTED]
Sent: Sunday, February 12, 2006 12:40 PM
Subject: Re: [R] Plotting contour  filled.contour in one graph



 Hi, Michael:

   I'm sure the example would be clearer AND more interesting if you used 
 real data AND accompanied it with a description like you gave below.  To 
 help motivate the usage, you could add a few words of interpretation, 
 e.g., that if you want both z and zz less than 2, x and y must be in the 
 upper right corner.

   Thanks for this.
   spencer graves

 Michael Prager wrote:
 GG

 Yes, gladly.  It is an idealized example of the following data situation: 
 There are two control or independent variables.  They are represented 
 here as x and y, on the horizontal and vertical axes respectively.  There 
 are two different responses or dependent variables plotted as different 
 types of contours.  The filled contours show response z.  The heavy lines 
 show response zz.

 Thus such a plot displays two different responses from a two-dimensional 
 range of conditions.  As an example, in fishery biology, x might be the 
 age at which fish are first subject to capture, y might be the fishing 
 mortality rate (intensity) applied, z might be the resulting yield per 
 fish, and zz might be the resulting spawning per fish.  There is usually 
 a trade-off between yield and spawning potential, and such a graph (if 
 done with real data) allows one to look at that trade-off. The OP seemed 
 to be seeking a way of contouring two responses against two independent 
 variables, and that's what this graph does.

 Is that clearer?  Would the graph would be better if I used real data?

 MHP



 Gabor Grothendieck wrote on 2/12/2006 11:31 AM:

Could you walk us through, in detail, what that graph is showing?


On 2/12/06, Michael Prager [EMAIL PROTECTED] wrote:

Besides the answers you already have, you might look at my 4D graph
example (with code) on the R Graphics Gallery:

http://addictedtor.free.fr/graphiques/RGraphGallery.php?graph=90

I think it does exactly what you are asking, and therefore it might fit
your needs with only slight code modification.

Mike Prager


Abd Rahman Kassim wrote on 2/12/2006 11:12 PM:

Dear All,

I have a question on overlaying a filled.contour (e.g. on soil 
properties data) and contour (by elevation) in one graph. Both have the 
same z matrix dimension. I'm able to overlay both graph, but the plots 
dimension did not overlap well on the same plots. How can I have both 
filled.contour and contour on the same graph? The commands that I have 
written are as follows:

filled.contour(0:15,0:10,t(matrix(Total.C,nrow=11,ncol=16)))
contour(0:15,0:10,as.matrix(elev),add=T)

Thanks for anay assistance.

Regards.


Abd Rahman Kassim
Forest Research Institute Malaysia
Kepong 52109
Selangor, MALAYSIA

*


*
  [[alternative HTML version deleted]]

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! 
http://www.R-project.org/posting-guide.html



--
Michael H. Prager, Ph.D.
Population Dynamics Team
NOAA Center for Coastal Habitat and Fisheries Research
NMFS Southeast Fisheries Science Center
Beaufort, North Carolina  28516  USA
http://shrimp.ccfhrb.noaa.gov/~mprager/

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! 
http://www.R-project.org/posting-guide.html






 *
 Outgoing mail is certified Virus Free.
 Checked by TrendMicro Interscan Messaging Security.
 For any enquiries, please contact FRIM IT Department.
 *

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


Re: [R] Legend Outside Plot Dimension

2006-01-19 Thread Abd Rahman Kassim

Dear Peter,

Thanks for your promt response. 

Abd. Rahman 
- Original Message - 
From: Petr Pikal [EMAIL PROTECTED]
To: Abd Rahman Kassim [EMAIL PROTECTED]; r-help@stat.math.ethz.ch
Sent: Thursday, January 19, 2006 12:11 AM
Subject: Re: [R] Legend Outside Plot Dimension


 
 Hi
 
 I think you need to use par(xpd=TRUE). Try to search archives as 
 similar question was answered few days ago.
 
 HTH
 Petr
 
 
 On 19 Jan 2006 at 12:19, Abd Rahman Kassim wrote:
 
 From:   Abd Rahman Kassim [EMAIL PROTECTED]
 To: r-help@stat.math.ethz.ch
 Date sent:  Thu, 19 Jan 2006 12:19:30 -0800
 Subject:[R] Legend Outside Plot Dimension
 
 
 Dear All,
 
 I'm trying to attach a legend outside the plot (Inside plot OK), but
 failed. Any help is very much appreciated.
 
 Thanks.
 
 
 Abd. Rahman Kassim, PhD
 Forest Management  Ecology Program
 Forestry  Conservation Division
 Forest Research Institute Malaysia
 Kepong 52109 Selangor
 MALAYSIA
 
 *
 
 Checked by TrendMicro Interscan Messaging Security.
 For any enquiries, please contact FRIM IT Department.
 *
  [[alternative HTML version deleted]]
 
 __
 R-help@stat.math.ethz.ch mailing list
 https://stat.ethz.ch/mailman/listinfo/r-help
 PLEASE do read the posting guide!
 http://www.R-project.org/posting-guide.html
 
 Petr Pikal
 [EMAIL PROTECTED]
 
 
 
 *
 Outgoing mail is certified Virus Free.
 Checked by TrendMicro Interscan Messaging Security.
 For any enquiries, please contact FRIM IT Department.
 *

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


[R] Legend Outside Plot Dimension

2006-01-18 Thread Abd Rahman Kassim

Dear All,

I'm trying to attach a legend outside the plot (Inside plot OK), but failed. 
Any help is very much appreciated.

Thanks.


Abd. Rahman Kassim, PhD
Forest Management  Ecology Program
Forestry  Conservation Division
Forest Research Institute Malaysia
Kepong 52109 Selangor
MALAYSIA

*

Checked by TrendMicro Interscan Messaging Security.
For any enquiries, please contact FRIM IT Department.
*
[[alternative HTML version deleted]]

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


Re: [R] Legend Outside Plot Dimension

2006-01-18 Thread Abd Rahman Kassim

Dear Jacques,

Thanks for the promt response.

Abd. Rahman
- Original Message - 
From: Jacques VESLOT [EMAIL PROTECTED]
To: Abd Rahman Kassim [EMAIL PROTECTED]
Cc: r-help@stat.math.ethz.ch
Sent: Wednesday, January 18, 2006 9:15 PM
Subject: Re: [R] Legend Outside Plot Dimension



use xpd argument in par(), as follows:

  ?par
  par(xpd=T, mar=par()$mar+c(0,0,0,4))
  plot(1,1)
  legend(1.5,1,point,pch=1)


Abd Rahman Kassim a écrit :

Dear All,

I'm trying to attach a legend outside the plot (Inside plot OK), but 
failed. Any help is very much appreciated.

Thanks.


Abd. Rahman Kassim, PhD
Forest Management  Ecology Program
Forestry  Conservation Division
Forest Research Institute Malaysia
Kepong 52109 Selangor
MALAYSIA

*

Checked by TrendMicro Interscan Messaging Security.
For any enquiries, please contact FRIM IT Department.
*
 [[alternative HTML version deleted]]

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! 
http://www.R-project.org/posting-guide.html






*

Checked by TrendMicro Interscan Messaging Security.
For any enquiries, please contact FRIM IT Department.
* 


*

Checked by TrendMicro Interscan Messaging Security.
For any enquiries, please contact FRIM IT Department.

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


Re: [R] polynomials transformation

2005-11-09 Thread Abd. Rahman Kassim

Dear Chuck,

Thanks for your prompt reply.

Abd. Rahman
- Original Message - 
From: Chuck Cleland [EMAIL PROTECTED]
To: Abd. Rahman Kassim [EMAIL PROTECTED]
Cc: R-Help Discussion r-help@stat.math.ethz.ch
Sent: Wednesday, November 09, 2005 6:04 PM
Subject: Re: [R] polynomials transformation


 The coefficients are in the attribute list:

  x - rnorm(100)
  attributes(poly(x, 2))$coefs
 $alpha
 [1] -0.1585783 -0.1193990

 $norm2
 [1]   1. 100. 110.3589 254.5965

 ?attributes

 Abd. Rahman Kassim wrote:
 Dear All,

 Need some help in polynomials transformation to get the coefficients. I 
 have tried poly.transform as applied in S-plus but it does not work.

 Thanks in advanced for any helps.

 Regards.


 Abd. Rahman Kassim (PhD)
 Head Forest Ecology Branch
 Forest Management  Ecology Program
 Forestry and Conservation Division
 Forest Research Institute Malaysia
 Kepong 52109
 Selangor, Malaysia

 *

 Checked by TrendMicro Interscan Messaging Security.
 For any enquiries, please contact FRIM IT Department.
 *
 [[alternative HTML version deleted]]

 __
 R-help@stat.math.ethz.ch mailing list
 https://stat.ethz.ch/mailman/listinfo/r-help
 PLEASE do read the posting guide! 
 http://www.R-project.org/posting-guide.html


 -- 
 Chuck Cleland, Ph.D.
 NDRI, Inc.
 71 West 23rd Street, 8th floor
 New York, NY 10010
 tel: (212) 845-4495 (Tu, Th)
 tel: (732) 452-1424 (M, W, F)
 fax: (917) 438-0894 


*

Checked by TrendMicro Interscan Messaging Security. 
For any enquiries, please contact FRIM IT Department.

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


[R] polynomials transformation

2005-11-08 Thread Abd. Rahman Kassim

Dear All,

Need some help in polynomials transformation to get the coefficients. I have 
tried poly.transform as applied in S-plus but it does not work.

Thanks in advanced for any helps.

Regards.


Abd. Rahman Kassim (PhD)
Head Forest Ecology Branch
Forest Management  Ecology Program
Forestry and Conservation Division
Forest Research Institute Malaysia
Kepong 52109
Selangor, Malaysia

*

Checked by TrendMicro Interscan Messaging Security.
For any enquiries, please contact FRIM IT Department.
*
[[alternative HTML version deleted]]

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


[R] Sort a dataframe

2005-11-07 Thread Abd. Rahman Kassim

Dear All,

How can I sort a data frame (using one of the column)?

Thanks for your support.

Regards.

Abd. Rahman Kassim (PhD)
Head Forest Ecology Branch
Forest Management  Ecology Program
Forestry and Conservation Division
Forest Research Institute Malaysia
Kepong 52109
Selangor, Malaysia

*

Checked by TrendMicro Interscan Messaging Security.
For any enquiries, please contact FRIM IT Department.
*
[[alternative HTML version deleted]]

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


Re: [R] Sort a dataframe

2005-11-07 Thread Abd. Rahman Kassim

Dear Andrew,

Thanks for the response. It works.

Abd. Rahman
- Original Message - 
From: Andrew Robinson [EMAIL PROTECTED]
To: Abd. Rahman Kassim [EMAIL PROTECTED]
Cc: R-Help Discussion r-help@stat.math.ethz.ch
Sent: Tuesday, November 08, 2005 12:53 PM
Subject: Re: [R] Sort a dataframe


 Try:

 dataframeName - dataframeName[order(dataframeName$ColumnName),]

 Cheers

 Andrew

 On Wed, Nov 09, 2005 at 12:43:13PM +0800, Abd. Rahman Kassim wrote:

 Dear All,

 How can I sort a data frame (using one of the column)?

 Thanks for your support.

 Regards.

 Abd. Rahman Kassim (PhD)
 Head Forest Ecology Branch
 Forest Management  Ecology Program
 Forestry and Conservation Division
 Forest Research Institute Malaysia
 Kepong 52109
 Selangor, Malaysia

 *

 Checked by TrendMicro Interscan Messaging Security.
 For any enquiries, please contact FRIM IT Department.
 *
 [[alternative HTML version deleted]]

 __
 R-help@stat.math.ethz.ch mailing list
 https://stat.ethz.ch/mailman/listinfo/r-help
 PLEASE do read the posting guide! 
 http://www.R-project.org/posting-guide.html

 -- 
 Andrew Robinson
 Senior Lecturer in Statistics   Tel: +61-3-8344-9763
 Department of Mathematics and StatisticsFax: +61-3-8344-4599
 University of Melbourne, VIC 3010 Australia
 Email: [EMAIL PROTECTED]Website: 
 http://www.ms.unimelb.edu.au 


*

Checked by TrendMicro Interscan Messaging Security. 
For any enquiries, please contact FRIM IT Department.

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html