Skip to content
Prev 5993 / 7420 Next

[EXTERNAL] Re: trasformation of matrix for iNEXT extrapolation interpolation of Hill's numbers

Or, if the component matrices need to be numeric with species names as row
names and sites as column names, Dave Roberts' labdsv package has matrify()
that does that and fills in the unseen combinations with 0s as opposed to
NAs.  Converting {site, taxon, abundance} triplets to matrix form is a very
common operation for vegan, labdsv, and other vegetation packages.  Thus,
you could build the list of 4 matrices with something like:

ciliates <- list(
                     M1 = labdsv::matrify(d1),
                     M2 = labdsv::matrify(d2),
                     M3 = labdsv::matrify(d3),
                     M4 = labdsv::matrify(d4)
                    )

Tom



On Thu, Jun 20, 2019 at 11:35 AM Law, Jason <Jason.Law at portlandoregon.gov>
wrote:

  
  
Message-ID: <CAM9kYqj21Wtkr8R3evpdtT9T6F04kAQrWbLy=NsOta7==+dm7w@mail.gmail.com>
In-Reply-To: <MWHPR0901MB2185B73F19E261D73BA2CD4087E40@MWHPR0901MB2185.namprd09.prod.outlook.com>