Displaying 20 results from an estimated 6000 matches similar to: "read.xls question"
2011 Feb 25
1
Markov chain transition model, data replication project
Hello all,
I am currently attempting to replicate data from a political science article
that utilized a Markov chain transition model to predict voter turnout
intention at time *t*; the data was separated into two different models
based on whether prior intent was to vote or not to vote. The details don't
really matter.
Mostly I am curious how to run a Markov chain transition model in R,
2007 Oct 19
1
plot.Design
Dear R-users:
I am trying to use the following code to reproduce the figures on page 140
of Prof. Frank Harrell's book 'Regression Modeling Strategies':
rm(list=ls())
options(width=128)
library(Hmisc)
library(Design)
getHdata(counties)
counties$older <- counties$age6574 + counties$age75
label(counties$older) <- '% age >= 65, 1990'
counties$pdensity <-
2010 Dec 08
3
ReadWrite.xls problem
Dear community,
I have now taken my R-file from lectures and intend to use it at home, but
have a problem
reading the Data from the file. I have installed and loaded the Package
xlsReadWrite so far.
I have also "Changed directory".
This is what I have entered
daten=read.xls("Daten A2")
This is my Error-Message in its German original:
Fehler in .Call("ReadXls",
2012 Aug 13
3
Using the effects package to plot logit probabilities
I'm trying to run a logit model and plot the probability curve for a number
of the important predictors. I'm trying to do this
with the Effects package.
df=data.frame(income=c(5,5,3,3,6,5),
won=c(0,0,1,1,1,0),
age=c(18,18,23,50,19,39),
home=c(0,0,1,0,0,1))
str(df)
md1 = glm(factor(won) ~ income + age + home,
data=df,
2010 Jul 07
1
xls.getshlib() error in xlsReadWrite package under W7
Dear all,
I installed xlsReadWrite package under Windows 7, and got error when trying
to run xls.getshlib().
Please, see the errors below:
> require(xlsReadWrite)
Loading required package: xlsReadWrite
xlsReadWrite version (cran shlib)
Copyright (C) 2010 Hans-Peter Suter, Treetron, Switzerland.
!! Your installation contains the cran placeholder shlib (dll/so).
Please get the regular shlib
2012 Jun 13
1
reading xls files using read.xls and xlsReadWrite
Dear R list,
I am trying to read in .xls files. I have tried using package 'gdata', I
get the following error.
> dataset <- read.xls("June.xls")
Wide character in print at
/Library/Frameworks/R.framework/Versions/2.14/Resources/library/gdata/perl/
xls2csv.pl line 262.
Seems like this is a problem coming from Perl?
I tried to install package 'xlsReadWrite', it
2009 Mar 07
3
Download and Import xls files in R
Dear List,
I am trying to solve a problem: I have approximately 100 Excel
spreadsheets each with approximately 4 sheet each that I would like to
download and import in R for analysis.
Unfortunately i realized (i also sent an email to the author or
xlsReadWrite() ) that the read.xls() doesn't allow to import the file in
R from internet.
Here it is the the code:
2011 Jun 23
3
trying to import xls or xlsx files
library(xlsReadWrite)
mydata<-read.xls("file path", header=TRUE)
however if I change xls to csv it works just fine. Any ideas what I'm doing
wrong? I have have also using the package gdata with the exact same error.
Below is the error that pops up.
Error in findPerl(verbose = verbose) :
perl executable not found. Use perl= argument to specify the correct path.
Error in
2011 Aug 24
3
Importing data from MS EXCEL (.xls) to R XXXX
Hello everyone,
What is the simplest, most RELIABLE way to import data from MS EXCEL (.xls)
format to R? In the past I have used the read.xls() function from the
xlsReadWrite package, however, I have been wrestling with it all afternoon
long with no success. I continue to receive the following error message:
> {widge<-read.xls("F:\\Classes\\Z1.Data\\stat.3010\\WidgeOne.xls",
+
2011 May 17
2
can not use plot.Predict {rms} reproduce figure 7.8 from Regression Modeling Strategies (http://biostat.mc.vanderbilt.edu/wiki/pub/Main/RmS/course2.pdf)
Dear R-users,
I am using R 2.13.0 and rms 3.3-0 , but can not reproduce figure 7.8 of the
handouts *Regression Modeling Strategies* (
http://biostat.mc.vanderbilt.edu/wiki/pub/Main/RmS/course2.pdf) by the
following code. Could any one help me figure out how to solve this?
setwd('C:/Rharrell')
require(rms)
load('data/counties.sav')
older <- counties$age6574 + counties$age75
2011 Dec 22
1
Error message with glm
I'm working on a logistic regression in R with the car package but keep
getting the following error message.
It's only and warning and not an error, but I'm just not sure how to
resolve the issues.
glm.fit: algorithm did not converge
glm.fit: fitted probabilities numerically 0 or 1 occurred
d1 = data.frame(mwin=c(mwin), mbid=c(mbid))
m1 = zelig(mwin ~ mbid, data=d1,
2012 Jul 19
3
Removing values from a string
So I have the following data frame and I want to know how I can remove all
"NA" values from each string, and also
remove all "|" values from the START of the string. So they should
something like "auto|insurance" or "auto|insurance|quote"
one = data.frame(keyword=c("|auto", "NA|auto|insurance|quote",
"NA|auto|insurance",
2009 Mar 12
2
Writing xls - multiple sheets
Hi,
Is there a package I can use to write to multiple sheets on xls file,
other than using the paid version of xlsReadWrite package
(xlsReadWritePro)?
Thank you,
Ferry
2012 Jul 05
2
Plotting the probability curve from a logit model with 10 predictors
I have a logit model with about 10 predictors and I am trying to plot the
probability curve for the model.
Y=1 = 1 / 1+e^-z where z=B0 + B1X1 + ... + BnXi
If the model had only one predictor, I know to do something like below.
mod1 = glm(factor(won) ~ as.numeric(bid), data=mydat,
family=binomial(link="logit"))
all.x <- expand.grid(won=unique(won), bid=unique(bid))
y.hat.new
2011 Nov 17
1
Error When Installing the RODBC Package
I'm running R in Ubuntu 10.10 and am trying to install the RODBC package.
However, I get the following error message:
ERROR: configuration failed for package ‘RODBC’
* removing ‘/home/amathew/R/i686-pc-linux-gnu-library/2.13/RODBC’
The downloaded packages are in
‘/tmp/RtmpekzPOQ/downloaded_packages’
Warning message:
In install.packages() :
installation of package 'RODBC' had
2010 Apr 02
1
can't read excel file with read.xls()
Hi, I encountered a problem of not being able to read in an excel spreadsheet using read.xls() in the xlsReadWrite package. can anyone help? Here is an example code
write.xls(matrix(1:9,nrow=3),"ttt.xls")
read.xls("ttt.xls")
Error in read.xls("ttt.xls") :
Unexpected error. Message: Can't find the file "ttt.xls"
The "ttt.xls" file was
2011 Jul 23
2
xml2-config issues
I'm trying to install the XML package on Ubuntu 10.10, and I keep getting
a warning message the XML could not be found and had non-zero exit
status. How can I fix this problem?
> install.packages()
Loading Tcl/Tk interface ... done
--- Please select a CRAN mirror for use in this session ---
Installing package(s) into ‘/home/amathew/R/i686-pc-linux-gnu-library/2.13’
(as ‘lib’ is
2007 Feb 09
1
append within worksheet in write.xls
I can currently append an entire worksheet with write.xls, but would
also like to be able to append within the same worksheet. Is this
possible? It doesn't seem to work if I use append = T
Thanks,
Mark
--
Mark W. Kimpel MD
Neuroinformatics
Department of Psychiatry
Indiana University School of Medicine
2008 May 19
2
i want to export a data.frame to file.xls
in order to export a data.frame to sheet.xls i try:
write(df,file="file_name.xls")
but when i open it a message appears:
"impossible to oppen this file. her format is unvalid"
knowen that i work with excel_2007
what is the solution ?
--
View this message in context: http://www.nabble.com/i-want-to-export-a-data.frame-to-file.xls-tp17326119p17326119.html
Sent from the R
2009 Jan 18
6
read a xls file
Hello,
i have a xls file. I will read it in r, what library-command i use for
this??
any ideas??
Thanks
Michele
[[alternative HTML version deleted]]