Hi Nevil,
As I don't have the filematrix package this is really an "any suggestion":
FM[,which(colnames(FM) %in% c("one","three"))]
Jim
On Tue, Sep 8, 2020 at 9:43 PM nevil amos wrote:
>
> Is there a way to get columns out of a filematrix using the column name
> directly in the same way that y
Maybe the following is a solution:
# load package needed
# QSutils is on Bioconductor
library(QSutils)
# here some exemplary data - these are the data from Pilou 1966 that are
used
# in the second example of Hutcheson, J theor Biol 129:151-154 (1970)
earlier <- c(0,0,146,0,5,46,0,1,295,0,0,3,
Hello,
No, it's not. That's the Shannon diversity index, the test the OP is
looking for is a t-test for Shannon diversity index equality. The index
itself is easy to code. A very simple example, based on ?vegan::diversity:
library(vegan)
data(BCI)
H <- diversity(BCI[1,])# just first row
https://cran.r-project.org/web/views/SpatioTemporal.html
Bert Gunter
"The trouble with having an open mind is that people keep coming along and
sticking things into it."
-- Opus (aka Berkeley Breathed in his "Bloom County" comic strip )
On Tue, Sep 8, 2020 at 7:15 AM pgokool wrote:
> I have
I have a data set of rainfall from 12 weather stations over 10 years. I
would like to model it using a Spatio-Temporal model in R.
[[alternative HTML version deleted]]
__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://
Is there a way to get columns out of a filematrix using the column name
directly in the same way that you can with a regular matrix?
library(filematrix)
M<-t(matrix(1:3,3,4))
colnames(M)<-c("one","two", "three")
M
#Extract column
M[,1]
M[,"one"]
M[,c(1,3)]
M[,c("one","three")]
FM<-fm.create.from.
Could it be that the test you are looking for is implemented in the
vegan package (function diversity(... index = "shannon" ...), and/or the
BiodiversityR package, function "diversityresult (..., index =
"Shannon",...)
best,
Karl Schilling
__
R-help
On 9/8/20 5:51 AM, Robert Knight wrote:
RE: Some R code works on Linux, but not Linux via Windows Subsystem Linux
This is taking data from a CSV and placing it into a data frame. This is R
3.6.3 inside Windows Subsystem for Linux v2, Ubuntu 18.04. The exact same
code, unchanged and on the sam
Hi Robert,
You don't provide a self-contained reproducible example, so I am just
guessing here.
I doubt your theory that the error is related to R. More likely the step
that creates a data frame from reading
the CSV is probably resulting in different data frames in the two cases. I
recommend that y
RE: Some R code works on Linux, but not Linux via Windows Subsystem Linux
This is taking data from a CSV and placing it into a data frame. This is R
3.6.3 inside Windows Subsystem for Linux v2, Ubuntu 18.04. The exact same
code, unchanged and on the same computer, works correctly in Ubuntu 18.0
10 matches
Mail list logo