Error: unexpected input in "mod <- model.matrix( ̃~"
1
0
Entering edit mode
p.m.craven • 0
@d90f4eb6
Last seen 17 months ago
United States

Hello,

I am trying to follow along the metagenomeSeq: Statistical analysis for sparse high-throughput sequencing tutorial and keep getting the same error at the model.matrix section.

The code:

mod <- model.matrix( ̃1 + SmokingStatus, data = pd)

The error:

Error: unexpected input in "mod <- model.matrix( ̃"

I am not sure why I am getting the error as I am following the code exactly as listed in the tutorial. Any advice would be really appreciated. Using R 4.2.1, Bioconductor 3.16.

Thanks! Pam

```

model.matrix • 1.2k views
ADD COMMENT
1
Entering edit mode
@james-w-macdonald-5106
Last seen 10 hours ago
United States

I converted what you posted to code, but I still can't see what is ahead of the 1 in your call to model.matrix. It's supposed to be a tilde (top left key on a QWERTY keyboard, after holding down the shift key). If you are not using a tilde, that's the problem. If you are, well, uh...

ADD COMMENT
0
Entering edit mode

I'm guessing that OP has copied and pasted code from the metagenomeSeq pdf vignette and got a non-ascii character in place of the tilde.

ADD REPLY
0
Entering edit mode

Thanks! That was definitely the issue!

ADD REPLY

Login before adding your answer.

Traffic: 412 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6