Statistik mit R
Unterpunkte dieser Seite
Installation
R starten
Dokumentation
Vektoren erzeugen
Installation
Unter Ubuntu 6.10 installiert man die Pakete r-base, r-gnome, r-doc-pdf, r-doc-html, ggobi.
Dokumentation
Man startet R und gibt den Befehl help.start() ein. Im Browser wir die Dokumentation angezeigt.
R starten
Man startet R mit folgendem Befehl:
LANG=en_US.ISO-8859-1 /usr/bin/R
Jemand hat folgendes für Ubuntu Edgy herausgefunden:
I have fixed this problem in the following way, which I saw on a thread somewhere. So now when I type R the graphics work. No "LANG=" specification is needed.
In Edgy the xfonts are in /etc/share/fonts/X11. But the automatic configuration of /etc/X11/xorg.conf has lines specifying the fontpaths as in /etc/share/X11/fonts .
I edited /etc/X11xorg.conf to change every instance of X11/fonts to fonts/X11.
So now that section is
Section "Files"
FontPath "/usr/share/fonts/X11/misc"
FontPath "/usr/share/fonts/X11/cyrillic"
FontPath "/usr/share/fonts/X11/100dpi/:unscaled"
FontPath "/usr/share/fonts/X11/75dpi/:unscaled"
FontPath "/usr/share/fonts/X11/Type1"
FontPath "/usr/share/fonts/X11/100dpi"
FontPath "/usr/share/fonts/X11/75dpi"
FontPath "/usr/share/fonts/X11/misc"
# path to defoma fonts
FontPath "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
EndSection
whereas the automatic configuration from my clean installation of Edgy was
Section "Files"
FontPath "/usr/share/X11/fonts/misc"
FontPath "/usr/share/X11/fonts/cyrillic"
FontPath "/usr/share/X11/fonts/100dpi/:unscaled"
FontPath "/usr/share/X11/fonts/75dpi/:unscaled"
FontPath "/usr/share/X11/fonts/Type1"
FontPath "/usr/share/X11/fonts/100dpi"
FontPath "/usr/share/X11/fonts/75dpi"
FontPath "/usr/share/fonts/X11/misc"
# path to defoma fonts
FontPath "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
EndSection
The new configuration takes effect after rebooting.
Vektoren erzeugen
Ein Vektor ist eine geordnete Zahlenkolonne.
x <- c(10.4, 5.6, 3.1, 6.4, 21.7)
Werden Vektoren in arithmetischen Ausdrücken eingesetzt, wird die Operation auf allen Elementen des Vektors ausgeführt. Das Ergebnis ist der Ergebnisvektor.
zum Seitenanfang
zur Hauptseite
Letzte Änderung: 04.02.2007