[R] subset data based on values in multiple columns

2012-07-03 Thread Chandra Salgado Kent
Dear list members, I am trying to create a subset of a data frame based on conditions in two columns, and after spending much time trying (and search R-help) have not had any luck. Essentially, I have a data frame that is something like this:

[R] Loops to assign a unique ID to a column

2011-08-02 Thread Chandra Salgado Kent
Dear R help, I am fairly new in data management and programming in R, and am trying to write what is probably a simple loop, but am not having any luck. I have a dataframe with something like the following (but much bigger): Dates-c(12/10/2010,12/10/2010,12/10/2010,13/10/2010,

Re: [R] stacked bar plot

2011-03-23 Thread Chandra Salgado Kent
Many thanks!! That's a million times easier!! :-) All the best, Chandra From: istaz...@gmail.com on behalf of Ista Zahn Sent: Wed 3/23/2011 12:06 PM To: Chandra Salgado Kent Cc: r-help@r-project.org Subject: Re: [R] stacked bar plot FWIW, the ggplot option

[R] stacked bar plot

2011-03-22 Thread Chandra Salgado Kent
Hello, I'm wondering if someone may be able to help me, and do apologize if there is a simple and obvious solution for this. I am somewhat new to R, and have been searching for a simple solution for a couple of days. I am interested in finding a tool that allows me to plot a stacked bar

Re: [R] stacked bar plot

2011-03-22 Thread Chandra Salgado Kent
...@bitwrit.com.au] Sent: Tue 3/22/2011 5:55 PM To: Chandra Salgado Kent Cc: r-help@r-project.org Subject: Re: [R] stacked bar plot On 03/22/2011 06:30 PM, Chandra Salgado Kent wrote: Hello, I'm wondering if someone may be able to help me, and do apologize if there is a simple and obvious

[R] loop for inserting rows in a matrix

2010-08-13 Thread Chandra Salgado Kent
Dear R friends, I have a matrix with 2060 rows and 41 columns. One column is Date, another is Transect, and another is Segment. I want to ensure that there are 9 Transects (1 to 9) for each Date, and 8 Segments (1 to 8) for each Transect in the matrix, by inserting rows where these are