David, thanks for the tips, though, I tried these arguments but it didn'
work.

Michael, thanks for your advice which worked, so far. I am using my object
to create a barplot afterwards, which automatically puts the colnames
besides the bars. Maybe this is still a good solution for my purpose as I
don't need to work with the colnames afterwards?

Thanks a lot!

Marion


Versuch es mal mit den Argumenten sep=";"  (oder das jeweilige Zeichen, das
deine Felder abtrennt)
und dec='.'  (oder ein anderes Zeichen für deine Kommastellen)

Gruss

2012/2/16 R. Michael Weylandt <michael.weyla...@gmail.com>

> check.names=FALSE
>
> but it's discouraged because it will make it hard to refer to column
> names inside R.
>
> Michael
>
> On Thu, Feb 16, 2012 at 11:18 AM, Marion Wenty <marion.we...@gmail.com>
> wrote:
> > Dear r-helpers,
> >
> > I read  a .csv file into R
> >
> > with the following command:
> >
> > A<-read.csv2(file="Mappe3.csv")
> >
> > It worked fine, except that I would like to get rid of the points between
> > the words and get spaces instead like I have got in the .csv file.
> >
> > At the moment it looks like the following:
> >
> > habe.mich.gut.mit.KlassenkollegInnen.verstanden
> > hatte.gutes.Verhältnis.zu.Eltern
> > fühlte.mich.von.LehrerInnen.respektiert
> > 1                                              88
> >         86                                      74
> >  fühlte.mich.von.LehrerInnen.ausreichend.gefördert
> > Eltern.konnten.mir.beim.Lernen.helfen
> > 1                                                62
> >                41
> >
> >
> > So far I couldn't find out how to do this. Could anyone help me with
> this?
> >
> >
> > Many Thanks in advance!
> >
> >
> > Marion
> >
> >        [[alternative HTML version deleted]]
> >
> >
> > ______________________________________________
> > 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.
> >
>

        [[alternative HTML version deleted]]

______________________________________________
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