R Markdown zeigt unerwünschten Abstand zwischen Zeilen an, wenn ich eine Zeichenvariable eines Datenrahmens mit dem Befehl drucke print(df[[i]])
Meine gewünschte Ausgabe würde Zeilenumbrüche erhalten, aber ohne Leerräume zwischen Zeilen ähnlich der folgenden. Ich kann es nur mit dem Befehl erhalten print(df[[i]])
in R, aber ich schaffe es nicht, es in R Markdown zu bekommen
[1] "No negative points"
[2] "The course was too short, not all interesting parts of the method could be covered."
[3] "the exercises to do at home were done together during course hours, which took too long in comparison to learning new stuff daily. furthermore, I would have wished for even more theoretical input instead of the long R exercises (see above)"
AKTUALISIEREN: Das Problem scheint, dass in der intermediate latex file manchmal markdown das Einfügen verhindert //
. Nachfolgend ein Beispiel für den Latex-Code, der sich aus dem Abschlag ergibt
{[}1{]} ``good overview over underlying principles of web scraping""\
{[}2{]} ``none""\
{[}3{]} ``very well presented""\
{[}4{]} ``- clear distinction between `big data" and `medium data" -
insight into what R can do in terms of webscraping"" {[}5{]} ``- a good
insight into what is possible with R w.r.t. webscraping""
Jede Hilfe wird geschätzt
Antworten:
0 für die Antwort № 1Angesichts dessen:
```{r}
df <- data.frame(c("No negative points", "The course was too short, not all interesting parts of the method could be covered.", "the exercises to do at home were done together during course hours, which took too long in comparison to learning new stuff daily. furthermore, I would have wished for even more theoretical imput instead of the long R exercises (see above)"), stringsAsFactors = FALSE)
```
Versuchen Sie es mit dem results
Argument für einen R-Chunk im Markdown:
```{r, results = "asis"}
print(df[[1]])
```
Für die Ausgabe wie: