Re: [R] HELP me please with import of csv to R

2012-11-25 Thread F86
I have solved the problem. And as i assumed from the beginning it was a simple one. The problem was that i had my csv file on the descop. It should have been in the working directory. So i just needed to read the file and then run lm() like i wrote before. Thanks to Ray DiGiacomo, Jr! Regard

Re: [R] HELP me please with import of csv to R

2012-07-11 Thread Daniel Nordlund
> -Original Message- > From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] > On Behalf Of William Dunlap > Sent: Wednesday, July 11, 2012 4:23 PM > To: F86; r-help@r-project.org > Subject: Re: [R] HELP me please with import of csv to R > > Y

Re: [R] HELP me please with import of csv to R

2012-07-11 Thread William Dunlap
tware wdunlap tibco.com > -Original Message- > From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On > Behalf Of F86 > Sent: Wednesday, July 11, 2012 2:47 PM > To: r-help@r-project.org > Subject: Re: [R] HELP me please with import of csv to R > > Hell

Re: [R] HELP me please with import of csv to R

2012-07-11 Thread F86
Hello William, - I used str() and got this 'data.frame': 290 obs. of 2 variables: $ Kommuner: Factor w/ 289 levels "Ale","Alingsas",..: 34 40 44 79 95 99 132 162 169 173 ... $ Skatt : Factor w/ 177 levels "28,89","28,9",..: 86 7 47 67 74 25 24 23 85 74 ... - and summary() - got this

Re: [R] HELP me please with import of csv to R

2012-07-11 Thread William Dunlap
m: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On > Behalf Of F86 > Sent: Wednesday, July 11, 2012 2:40 AM > To: r-help@r-project.org > Subject: Re: [R] HELP me please with import of csv to R > > Thank you! It is fixed now. > > However, now when I'm tryi

Re: [R] HELP me please with import of csv to R

2012-07-11 Thread F86
Thank you! It is fixed now. However, now when I'm trying with hist(skatter) i get this message: Error in hist.default(skatter) : 'x' must be numeric I don't know what I'm doing wrong but it worked perfectly on windows some weeks ago. My data skatter looks like this: > skatter

Re: [R] HELP me please with import of csv to R

2012-07-11 Thread F86
Thank you! It is fixed now. However, now when I'm trying with hist(skatter) i get this message: Error in hist.default(skatter) : 'x' must be numeric I don't know what I'm doing wrong but it worked perfectly on windows some weeks ago. My data skater looks like this: > skatter Ko

Re: [R] HELP me please with import of csv to R

2012-07-10 Thread R. Michael Weylandt
On Tue, Jul 10, 2012 at 4:23 PM, FJ M wrote: > 3) attach the data so that the headers become objects that contain the data > attach(v_data) This is a discouraged practice as it leads to difficult to trace errors and non-local effects. Some "big names" of the R universe suggest it [I think V of V

Re: [R] HELP me please with import of csv to R

2012-07-10 Thread FJ M
rad...@gmail.com > To: r-help@r-project.org > Subject: [R] HELP me please with import of csv to R > > Hey, > > I am having problems with importing a csv file to R. > > I could read the file by typing: > read.csv(file="/Users/kama/Desktop/skatter.csv", heade

Re: [R] HELP me please with import of csv to R

2012-07-10 Thread peter dalgaard
On Jul 11, 2012, at 01:24 , Sarah Goslee wrote: > That is silly, but I have learned something. Thanks. > (The silliest bit was when someone decided that numeric data files should use locale-dependent conventions, notably decimal separators...) > Though honestly, I've never seen the advantage o

Re: [R] HELP me please with import of csv to R

2012-07-10 Thread Sarah Goslee
That is silly, but I have learned something. Thanks. Though honestly, I've never seen the advantage of read.csv() over the more versatile read.table(). Sarah On Tuesday, July 10, 2012, peter dalgaard wrote: > > On Jul 10, 2012, at 21:44 , Sarah Goslee wrote: > > > > But note that if sep=";" the

Re: [R] HELP me please with import of csv to R

2012-07-10 Thread peter dalgaard
On Jul 10, 2012, at 21:44 , Sarah Goslee wrote: > > But note that if sep=";" then you don't have a csv file and should > properly use read.table() instead. That's not actually true. In a substantial part of the world, csv files are semicolon separated. That's what read.csv2() is for. (Yes, it i

Re: [R] HELP me please with import of csv to R

2012-07-10 Thread Sarah Goslee
Hi, On Tue, Jul 10, 2012 at 12:48 PM, F86 wrote: > Hey, > > I am having problems with importing a csv file to R. > > I could read the file by typing: > read.csv(file="/Users/kama/Desktop/skatter.csv", header=TRUE, sep=";") So that command does work? > However, i can not analyze the "skatter" -

[R] HELP me please with import of csv to R

2012-07-10 Thread F86
Hey, I am having problems with importing a csv file to R. I could read the file by typing: read.csv(file="/Users/kama/Desktop/skatter.csv", header=TRUE, sep=";") However, i can not analyze the "skatter" - for ex, when i type: skatter = read.csv("skatter.csv") i get this message: Erro