Dear R-users,
I have som troubles with .sav file. How is it possible for us R-users to
read SPSS files. I know that is possible,
I tried the following:
> library(foreign)
> Corp<-read.spss("/Users/kama/Analysis/Corporation.sav", header=TRUE,
> sep=",")
Error in read.spss("/Users/kama/Analys
Dear David,
Than you for helping me.
I tried with ","
Data1<-read.table("/Users/kama/Analysis/GDP10.csv",header=TRUE,sep=",")
Error in scan(file, what, nmax, sep, dec, quote, skip, nlines, na.strings,
:
line 116 did not have 2 elements
i also tried:
Data1<-readLines("/Users/kama/Anal
Also tries this:
x<-count.fields("/Users/kama/Analysis/GDP10.csv", sep="\t")
> x
[1] 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
1 1
[38] 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
1 1
[75] 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
In addition,
I tried Data1<-read.table("/Users/kama/Analysis/GDP10.csv", sep="\t",
fill=TRUE)
the result: *** caught segfault ***
address 0xd020, cause 'memory not mapped'
Possible actions:
1: abort (with core dump, if enabled)
2: normal R exit
3: exit R without saving workspace
4: exit
Dear R-users,
When i try -
Data1<-read.table("/Users/kama/Analysis/GDP10.csv",header=TRUE,sep=";") i
am getting this error: Warning message: In scan(file, what, nmax, sep, dec,
quote, skip, nlines, na.strings, :
number of items read is not a multiple of the number of columns
I wonder what Ia
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
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
Yes, i have already done it, i will post it here if i find the solution.
--
View this message in context:
http://r.789695.n4.nabble.com/Why-do-i-get-Error-unexpected-input-in-A-lm-GandW-Authocracy-Data-tp4650559p4650773.html
Sent from the R help mailing list archive at Nabble.com.
___
The file that I'm using is csv. How do i remove the non-printing "¬"
character?
Is there any other way to run lm() ? may be it would work with other
commands
Best,
Faradj
--
View this message in context:
http://r.789695.n4.nabble.com/Why-do-i-get-Error-unexpected-input-in-A-lm-GandW-Autho
Also when i type "z¬1" i got the same error. My data seems to be OK without
any problems. And its works perfect for a friend.
--
View this message in context:
http://r.789695.n4.nabble.com/Why-do-i-get-Error-unexpected-input-in-A-lm-GandW-Authocracy-Data-tp4650559p4650762.html
Sent from the
True it did not. I have now tried to do everything but without any results.
However, a friend of mine, with PC(Linux), does the same thing and it works
just perfect.
--
View this message in context:
http://r.789695.n4.nabble.com/Why-do-i-get-Error-unexpected-input-in-A-lm-GandW-Authocracy-Dat
Dear Bruno,
I sitll get this message, even when iam using "," Error: unexpected input
in "A<-lm(GandW ~ Authocracy,Data)"
--
View this message in context:
http://r.789695.n4.nabble.com/Why-do-i-get-Error-unexpected-input-in-A-lm-GandW-Authocracy-Data-tp4650559p4650720.html
Sent from the R h
Every time i insert : A<-lm(GandW ~ Authocracy;Data) i get this Error.
Iam using Mac. And i have checked that "Data" has been read correctly. The
same command with the same Data has been used by a friend who is using
Linux.
Thanks for help!
Stockholm university
Faradj
--
View this m
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
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
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
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
17 matches
Mail list logo