Hi Bert
Yes, in this case which is not necessary. But in case NAs are involved
sometimes logical indexing is not a best choice as NA propagates to the
result, which may be not wanted.
x <- 1:10
x[c(2,5)] <- NA
y<- letters[1:10]
y[x<5]
[1] "a" NA "c" "d" NA
y[which(x<5)]
[1] "a" "c" "d"
dat <-
Dear Dr. David;
Re; List rejection
I'm unable to explain why this posting was refused. It does have 4 image
files attached. That is more than I typically see on Rhelp. I'm only a
volunteer moderator, and not one of the owners of the list. I speculate
that if you were to repost to rhelp (and NO
It is not too clear to me what you want to do and why that package is the way
to do it. Is the package a required part of your assignment? If so, maybe
someone else can help you find how to properly install it on your machine,
assuming you have permissions to replace the other package it seems t
Dear R-expert,
I hope that you are doing well.
I am interested to calculate the age heaping for each digit (0,1,...,9)
based on my data set. However, when I run the R code, I got the following
errors. Please help me in this regard.
##
library(remotes)
inst
If you start R just using the regular command line version (not
RStudio), does
Sys.getenv("R_DOC_DIR")
point to /usr/share/R/doc ? The standard R startup script should do
that, but if it doesn't maybe you've got an override?
Or maybe you have R_DOC_DIR defined yourself?
Duncan Murdoch
On Sat, 7 Aug 2021 20:26:13 -0700 (PDT)
Jeff Newmiller wrote:
Documentation on most Linux systems, regardless of release, is commonly
located under the /usr/share directory. For R that is
/usr/share/doc/R. There is also a "man" entry for R. The rstudio help
list might be able to help more than
Hello,
nobs is missing in your example.
Assuming that envelope is the function in package base boot, I cannot
reproduce the error.
set.seed(2021)
nc <- 1
nobs <- 100
M1 <- matrix(evd::rfrechet(nc*nobs),nrow=nobs,ncol=nc)
M <- t(apply(M1,2,sort))
E <- boot::envelope(mat=M) #compute 95% co
Hi,
Can anyone help me how to solve this problem?
#calculation of confidence intervals
1. > nc <- 1
2. > M1 <- matrix(rfrechet(nc*nobs),nrow=nobs,ncol=nc)
3. > M <- t(apply(M1,2,sort))
4. > E <- envelope(mat=M) #compute 95% confidance bands
*Error in envelope.matrix(mat = M) : rvals must be
On 08/08/2021 03:43 AM, Rui Barradas wrote:
> Hello,
>
> There are CRAN packages, for instance, packages DTMCPack and markovchain,
> that require transition probabilities as input. See this R-bloggers post [1].
>
>
> [1] https://www.r-bloggers.com/2016/01/getting-started-with-markov-chains/
>
>
>
Hello,
R 4.1.0 on Ubuntu 20.04.
My ls command on /usr/lib/R on my home computer gives what Rolf posted,
so I agree with every body that this is not an R issue and would insist
with RStudio and ask for their help again. They are generally helpful, btw.
I follow installation instructions to the
Jeff pointed out where the doc directory is installed in Ubuntu:
/usr/share/R/doc. So this is definitely an RStudio issue: perhaps it
got "tweaked", or perhaps Rolf installed a version meant for some other
distribution. In either case, off-topic in R-help, I think.
Duncan Murdoch
On 08/08/
R version 4.1.0 (2021-05-18)
RStudio 1.4.1714
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 20.04.2 LTS
I do not see a doc folder at R level but a lot of newer packages,
probably tidyverse derived seem to have a doc sub-folder containing
documentation files
For example corrplot has
Hello,
There are CRAN packages, for instance, packages DTMCPack and
markovchain, that require transition probabilities as input. See this
R-bloggers post [1].
[1] https://www.r-bloggers.com/2016/01/getting-started-with-markov-chains/
Hope this helps,
Rui Barradas
Às 02:21 de 08/08/21, H
13 matches
Mail list logo