Re: [R] Extract cell of many values from dataframe cells and sample from them.

2012-11-13 Thread Jean V Adams
EA (ENV) & The Sainsbury Laboratory. > > From: Jean V Adams [jvad...@usgs.gov] > Sent: 08 November 2012 19:59 > To: r-help@r-project.org > Cc: Benjamin Ward (ENV) > Subject: Re: [R] Extract cell of many values from dataframe cells > and sample from them. > Ben, > > I th

Re: [R] Extract cell of many values from dataframe cells and sample from them.

2012-11-11 Thread Benjamin Ward (ENV)
.gov] Sent: 08 November 2012 19:59 To: r-help@r-project.org Cc: Benjamin Ward (ENV) Subject: Re: [R] Extract cell of many values from dataframe cells and sample from them. Ben, I think you would find lists a helpful way to arrange your data. They do not require equal lengths of data in each ele

Re: [R] Extract cell of many values from dataframe cells and sample from them.

2012-11-08 Thread Jean V Adams
Ben, I think you would find lists a helpful way to arrange your data. They do not require equal lengths of data in each element. Check out the code below for a smaller version of the example you provided (with only 5 individuals rather than 500). # An alternative way to arrange your data, as

[R] Extract cell of many values from dataframe cells and sample from them.

2012-11-08 Thread Benjamin Ward (ENV)
Hi, First my apologies for a non-working piece of code in a previous submission, I have corrected this error. I'm doing is individual based modelling of a pathogen and it's host. The way I've thought of doing this is with two dataframes, one of the pathogen and it's genes and effector genes, a