Displaying 20 results from an estimated 100 matches similar to: "Why do i get "Error: unexpected input in "A<-lm(GandW ~ Authocracy, Data)""
2012 Dec 02
6
Warning message: In scan(file, what, nmax...)
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 Iam doing wrong. i guess it is something simple, however, i do
not understand
2012 Dec 03
2
How to read SPSS file in R
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/Analysis/Corporation.sav", header = TRUE, :
unused
2012 Jul 10
3
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", header=TRUE, sep=";")
However, i can not analyze the "skatter" - for ex, when i type: skatter
= read.csv("skatter.csv")
i get this message:
Error in file(file, "rt") : cannot open the connection
2005 Oct 13
1
call waiting not working on PAP2
Hi,
I have "callwaiting=yes" in my zapata.conf, and "Call Waiting Serv: Yes" in
the PAP2s.
However, there's sitll no callwaiting on the PAP2s. Everything else work
fine.
Any ideas? Am I missing something somewhere?
Thank you.
AK
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2011 Mar 14
1
Rscript, hashbang, and arguments
Hi,
I have a bunch of R scripts which have the hash bang !/usr/bin/env Rscript
and I typically run these scripts by passing in some parameters like this:
./nameOfRScript arg1 arg2 ...
I know Rscript has the option to run in --vanilla. Where exactly do I
insert the --vanilla option? When I do something like this:
./nameOfRScript --vanilla arg1 arg2 ...
And I try to access the commandArgs,
2005 Nov 24
1
New Xenoppix with Install2win and PXE-terminal-server
Dear,
New Xenoppix is released.
http://unit.aist.go.jp/itri/knoppix/xen/index-en.html
It has new fueature (Xenoppix-terminal-server and install2win). It
bases on KNOPPIX 4.0.2 DVD or CD. (The size of Xenoppix is sitll
over 700MB, please burn a DVD-ROM.)
New feature (Experimental)
*Act as a terminal server.
Xenoppix can be a Terminal Server and boots clinet PC with PXE network
2011 Apr 03
1
White boxes appearing instead of graphics.
Well, a few days ago I was using my XP laptop when I was unable to boot windows, I tried all sorts of things and couldn't get it to run, so I turned to Linux. I backed up all my stuff and today I installed Ubuntu (Maverick). In other words, I'm completely new to Linux.
I heard about Wine and I installed it and I can't believe how well it works o_o, but I seem to be having a
2007 Apr 10
0
[LLVMdev] cvs opt broken?
This has been reported.
http://llvm.org/bugs/show_bug.cgi?id=1317
On 4/10/07, Ryan M. Lefever <lefever at crhc.uiuc.edu> wrote:
>
> I checked out llvm from cvs & llvm-gcc from svn last night and again
> tonight. Each time they compiled and installed fine. After installing
> them, I recompiled compiler transforms I had written for opt. opt seems
> to load the my
2003 Apr 29
3
unexpected tag 25 on OSX
Hello, I am trying to set up a rsync backup server. So far I have it working with my linux machines.
I am now trying to get it to work with OSX.2.
From my backup server i am executing "rsync --delete --progress --stats -avRe ssh --exclude=/Volumes/ --numeric-ids
client.mydomain"
and using an ssh key with the command="rsync --server --sender -vlogDtprR --delete --numeric-ids .
2010 Jun 14
49
iSCSI and LVM
Hi Everyone,
I am going to get a storage server which will be connected to my Xen hosts via iSCSI/Ethernet. I wish to use LVM for the DomU disks. The storage server will have a RAID10 array, and 2 Xen hosts will connect to this (Each will have a 50% share of the RAID10 array, space wise).
What is the best way to go about this? Should I:
a) Split the RAID10 array into 2 partition on the
2006 Jul 04
2
has_many working correctly only on reload!
I have this code that is using svn externals with rails EDGE working
fine for the past couple of months. A couple of days ago, this code
died. Even after deleting vendor/rails, this code doesnt work:
class Tag < ActiveRecord::Base
has_many :taggings
has_many :events, :through => :taggings
has_many :users, :through => :taggings
end
class User < ActiveRecord::Base
# Virtual
2007 Apr 10
4
[LLVMdev] cvs opt broken?
I checked out llvm from cvs & llvm-gcc from svn last night and again
tonight. Each time they compiled and installed fine. After installing
them, I recompiled compiler transforms I had written for opt. opt seems
to load the my transform libraries fine, but it complains:
opt: Unknown command line argument '-mytransform'
whenever I try to specify one of my transforms on the opt
2018 May 29
1
How to generate a conditional dummy in R?
Dear Jim,
wow! It worked! Thanks a lot.
I did as you suggested and it worked well with the real data. Although it gave me this error: Error in if (!is.na(x$Y[i])) { : argument is of length zero. For some reason the X1 produced less observations than it is in the data. But it's not a big deal - I identified those cases and simply deleted from the data (it was countries that only appeared
2010 Apr 30
1
using shared storage with libvirt/KVM?
Hello,
I've spent a few days googling and reading documentation, but I'm looking
for clarification and advise on setting up KVM/libvirt with shared
storage.
I have 2 (for now) Ubuntu Karmic systems with KVM/virsh/virt-manager set
up and running.
I have a storage server that can do NFS/iSCSI/samba/ etc.
I am trying to figure out the best way to set things up so that I can run
2018 May 29
0
How to generate a conditional dummy in R?
Hi Faradj,
What a problem! I think I have worked it out, but only because the
result is the one you said you wanted.
# the sample data frame is named fkdf
Y2Xby3<-function(x) {
nrows<-dim(x)[1]
X<-rep(0,nrows)
for(i in 1:(nrows-2)) {
if(!is.na(x$Y[i])) {
if(x$Y[i] == 1 && any(is.na(x$Y[(i+1):(i+2)]))) X[i]<-1
if(i > 1) {
if(X[i-1] == 1) X[i]<-0
}
}
2012 Jul 10
3
Need HELP: how find and use a csv file?
Hey,
I am having some problems with importing a csv file into R and then saving it for analyzing.
I got a csv file ( skater.csv) which i could read by typing: read.csv(file="/Users/kama/Desktop/skatter.csv", header=TRUE, sep=";")
However, when i enter: skatter.csv<-read.csv("skatter.csv", header=TRUE) i get this message:
Error in file(file,
2018 May 28
3
How to generate a conditional dummy in R?
Hi everyone,
I am trying to generate a conditional dummy variable ?X" with the following rules
set X=1 if Y is =1, two years prior to the NA. [0,0,NA].
For example, if the pattern for Y is 0,0,NA then the X variable is =0 for all the two years prior to the NA. If the pattern for Y is 0,1,NA or 1,0,NA then the X =1 . To be clear, if 1,1,NA then the X=1 that first specific year, it
2012 Jul 10
0
R-help Digest, Vol 113, Issue 13
http://www.ncbi.nlm.nih.gov/pubmed/21418051 for the full reference.
I don't have an electronic copy, but I do have that issue of Biometrics
in my office. I'll have a copy sent over.
Terry
On 07/10/2012 04:08 PM, r-help-request at r-project.org wrote:
> Send R-help mailing list submissions to
> r-help at r-project.org
>
> To subscribe or unsubscribe via the World Wide
2018 Aug 06
6
[RFC 0/4] Virtio uses DMA API for all devices
On Tue, 2018-08-07 at 00:46 +0300, Michael S. Tsirkin wrote:
> On Tue, Aug 07, 2018 at 07:26:35AM +1000, Benjamin Herrenschmidt wrote:
> > On Mon, 2018-08-06 at 23:35 +0300, Michael S. Tsirkin wrote:
> > > > As I said replying to Christoph, we are "leaking" into the interface
> > > > something here that is really what's the VM is doing to itself,
2018 Aug 06
6
[RFC 0/4] Virtio uses DMA API for all devices
On Tue, 2018-08-07 at 00:46 +0300, Michael S. Tsirkin wrote:
> On Tue, Aug 07, 2018 at 07:26:35AM +1000, Benjamin Herrenschmidt wrote:
> > On Mon, 2018-08-06 at 23:35 +0300, Michael S. Tsirkin wrote:
> > > > As I said replying to Christoph, we are "leaking" into the interface
> > > > something here that is really what's the VM is doing to itself,