Message-ID: <DUB123-W11F3D2979AC6A7FF8F71A9D5E40@phx.gbl>
Date: 2013-03-06T16:03:43Z
From: Berry Boessenkool
Subject: print justify
Hi everyone,
I'm trying to print a table justified to the left, but it doesn't work.
Any hints?
KennArt <- data.frame(NR=c(171,172,174,175,176,177,181,411,980), TYP=c("K?rnermais",
?"Corn Cob Mix", "Zuckermais", "Mischanbau (Silo)Mais/Sonnenblumen",
?"Mais mit Bejagungsschneise in gutem landwirtschaftlichen und ?kologischen Zustand",
?"Mais mit Bejagungsschneise (Kulturpflanze)", "Hirse", "Silomais (Als Hauptfutter)", "Sudangras"))
print(KennArt, justify="left")?
still justifies to the right:
?? NR?????????????????????????????????????????????????????????????????????????????? TYP
1 171??????????????????????????????????????????????????????????????????????? K?rnermais
2 172????????????????????????????????????????????????????????????????????? Corn Cob Mix
3 174??????????????????????????????????????????????????????????????????????? Zuckermais
4 175??????????????????????????????????????????????? Mischanbau (Silo)Mais/Sonnenblumen
5 176 Mais mit Bejagungsschneise in gutem landwirtschaftlichen und ?kologischen Zustand
6 177??????????????????????????????????????? Mais mit Bejagungsschneise (Kulturpflanze)
7 181???????????????????????????????????????????????????????????????????????????? Hirse
8 411??????????????????????????????????????????????????????? Silomais (Als Hauptfutter)
9 980???????????????????????????????????????????????????????????????????????? Sudangras
print(KennArt[2:3,], justify="left")
doesn't leftify either, so it's not the German letters' fault.
format(KennArt, justify="left")
does the job mostly, but the column names are still rightified...
This solution is fine for me now, but I'm still wondering...
sessionInfo() returns:
R version 2.15.1 (2012-06-22)
Platform: x86_64-pc-mingw32/x64 (64-bit)
locale:
[1] LC_COLLATE=German_Germany.1252? LC_CTYPE=German_Germany.1252??? LC_MONETARY=German_Germany.1252
[4] LC_NUMERIC=C??????????????????? LC_TIME=German_Germany.1252???
attached base packages:
[1] graphics? grDevices datasets? utils???? stats???? methods?? base????
other attached packages:
[1] foreign_0.8-52???? fortunes_1.5-0???? BerryFunctions_1.0 evd_2.3-0????????
loaded via a namespace (and not attached):
[1] tools_2.15.1
Thanks ahead,
Berry