Ich bin neu in R Studio und mein Professor gab uns unknitable Code. Ich habe keine Ahnung, wie ich das beheben kann. Kann mir bitte jemand erklären, was die Fehlermeldung bedeutet und wie ich das beheben kann?Mein Code wird nicht stricken in R Studio
mein Code:
```{r}
PlotSpecies <- function(s, title="Species") {
s.table <- table(s)
par(las=2)
barplot(s.table, names.arg=names(s.table),
horiz=TRUE, cex.names=0.5, main=title)
}
```
Error message: Error in parse(text + x, srcfile = src):
<text>:11:24: unexpected symbol 10: EW <- rep(species, endemic.woodland) 11: PlotSpecies(EW, title="Endemic^Calls:
<Anonymous> ... evaluate -> parse_all -> parse_all.character -> parse Execution halted
läuft Ihr Code außerhalb von knitr? – SymbolixAU
Die Fehlermeldung und Ihr Code stimmen nicht überein. – Roland