data(phiX174Phage) dataset not found in R [closed] - r

Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 4 years ago.
Improve this question
I am beginner studying Bioconductor.
I am try to follow lecture of Bioconductor.
source("https://bioconductor.org/biocLite.R")
biocLite("Biostrings")
library(Biostrings)
data(phix174Phage)
Warning message:
In data(phix174Phage) not foundError: object 'phix174Phage' not found.
What did I wrong?

R is case-sensitive. Try:
data(phiX174Phage)
with an upper-case X, as specified in the introductory tutorial.

Related

Cannot install.packages(qwraps2) in R. What is happening? [closed]

Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 2 years ago.
Improve this question
install.packages(qwraps2)
Error in install.packages : object 'qwraps2' not found
This package wont install, I get the above error. Can anyone help?
Try install.packages("qwraps2") instead.
it will not work without the quotes around package name

Error: 'use_package' is not an exported object from 'namespace:devtools' [closed]

Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 2 years ago.
Improve this question
Can anyone point me in the right direction for getting around this error? I'm new to creating packages and am currently following Hadley Wickham's guide.
http://r-pkgs.had.co.nz/description.html
To copy the comments of #zx8754, use_package is now part of the usethis package. And per the comment from #MichaelChirico, Hadley's book is updated on github, but has not yet been re-published.

Error: unexpected SPECIAL in "as.Date(20110505, %Y%" [closed]

Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 4 years ago.
Improve this question
I am not sure why I cannot do write the following code.
as.Date(20110505, %Y%m%d)
I receive the error given in the title. Can anyone help me out?
It should be string with the format also in quotes
as.Date(as.character(20110505), "%Y%m%d")
#[1] "2011-05-05"

matplot is missing from CRAN? [closed]

Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 6 years ago.
Improve this question
Im taking an R programming class that is using the package "matplot" for a demo. I cant find "matplot" in CRAN so i'm assuming it has been replaced/deleted/changed. Is there another package that replaced it?
There is a matplot function within the graphics library. Here's an example from the documentation:
require(grDevices)
matplot((-4:5)^2, main = "Quadratic")
Also, matplot is a plotting library for PHP. Perhaps your instructor could help clarify what is expected.

has the %between% command in R been removed? [closed]

Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 7 years ago.
Improve this question
I am returning to some old code where I had used the following syntax:
y[df$myvar %between% c(1,100)]
but get the error
could not find function "%between%"
This code used to work, and I have updated R in the mean time. any thoughts?
As Pascal pointed out, you should load the package data.table first:
library(data.table)
Then you'll be able to use it.

Resources