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


                                          
______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to