Displaying 20 results from an estimated 3000 matches similar to: "R data opening problem"
2012 Aug 15
3
Basic question -loading data
Hi all,
New user here - I include the following command in the prompt
read.csv("document.csv", header = TRUE )
and the output shows up.
But when I include the following command
summary(data)
I get the following message "Error in object[[i]] : object of type 'closure' is not subsettable"
Can someone please advise why R is not reading my data?
Thanks
2009 May 03
1
dates from Stata's .dta to R's .Rdata: become character
Dear Sir/Madam,
I converted the .dta into .Rdata with the foreign library read.dta. However,
when I use fix() I get the message that the dates are discarded.
Before fix(), class(dateX) gives 'dates' as class; after fix() class(dateX)
gives 'character'
Why is that?
Best regards,
Rob Bakker
[[alternative HTML version deleted]]
2009 May 02
1
value labes Stata vs factors
Dear Sir/Madam,
I converted my Stata Rgenmetvl.dta file with read.dta succesfully in R's
Rgenmetvl.Rdata. However, factors give problem in certain calculations,
e.g.:
> mean(Rgenmetvl$sex)
[1] NA
Warning message:
In mean.default(Rgenmetvl$sex) :
argument is not numeric or logical: returning NA
What can I do?
In addition to means, summary(Rgenmetvl$sex) works perfectly.
Best regards,
2009 Dec 20
3
Object of type 'closure' not subsettable
Hi all,
How can I overcome the error "object of type 'closure' not subsettable"
I ran the following script
seq <- paste(seq(1914, 1916, by=1), "*.y", sep=".") # make sequence
c <- 3 # total number of files
d2 <- file # creates dummy file
# Input sequence in loop
for (i in 1:3){
list <- list.files("~/ukcp09/txt/x.djf", seq[[i]])
file
2004 Feb 11
6
Spelling (PR#6570)
I came across this in connection with an unrelated issue
> beta[2]
Error in beta[2] : object is not subsettable
> beta[2] <- 5
Error in "[<-"(`*tmp*`, 2, value = 5) : object is not subsetable
One of the messages must be wrong, but I need a native English speaker
to tell me which one.
--
O__ ---- Peter Dalgaard Blegdamsvej 3
c/ /'_ --- Dept. of
2010 Jan 05
2
Align two protein sequences using BLAST
Dear R users,
I would like to align two protein sequences using BLAST
(bl2seq). The question is whether this programm have been
implemented in R.
Thank you for your help,
Alla.
2009 Sep 30
2
Compress (gzip) a pdf device
I have not found an easy way to compress a file on filesystem.
Especially I'd like to compress a pdf from pdf() function/device. Is it possible to compress It on the flight?
I'd like to do something like:
pdf(gzipconnection())
dev.off()
If It is not possible, how can I create a gzip with the pdf?
Thanks
Daniele A.
________________________________
ORS Srl
Via Agostino Morando 1/3
2011 Aug 17
2
dotchart vs. dotplot ... groups
I'm trying to create a dotplot with some grouping.
I've been able to create what I want using dotchart (basic graphics), but can't quite get it using dotplot (lattice). I prefer to use lattice (or ggplot2) because I think it's a bit easier to control some other aspects of the plot appearance.
Basically, w/ lattice I've not been able to get the y-axis label to include the
2005 Jun 03
2
reading tables into R
I have been using R and Perl. When I read in a text file using the read.table option, and I try to mathematically manipulate the individual elements in the table, I keep getting an "object is not subsettable" error. If I try to use a different method, it works, but takes too much time(basically, I then need to read in values individually into R instead of as a 2D array, so the number of
2008 Jan 26
1
Read stata file from internet?
Dear R-helpers,
I would like to have my students read into R an online Stata dataset: 'http://www.stat.ucla.edu/projects/datasets/risk_project.dta'
I was able to read it into R after downloading it and converting it
with StatTransfer (http://www.stattransfer.com/).
Here is what happens when I use read.dta() as I would use read.table():
> require(foreign)
> risk2 <-
2007 Nov 13
4
Public folder simple question
Hi to all,
I''ve a simple question:
does it possible to change the public folder address based on database
value into application controller ?
This because I must handle a multidomain rails application and I must
separate the public folders for each different domain...
Thanks in advance...
--
Gianluca Tessarolo
TreNetMediaMaster S.r.l.
The Internet Technology Company
Telefono
2017 Jun 29
0
Different date formats in one column
I doubt your actual file looks like the mess that made it to my email
software (below) because you posted HTML-format email. Read the Posting
Guide, and in particular figure out how to send plain text email.
You might try the "anytime" contributed package, though I suspect it too
will choke on your mess. Otherwise, that will pretty much leave only a
brute-force series of regular
2005 Jun 06
3
write.dta limits
Hope everyone id doing great ..
Just need some clarification over the limit of write.dta. I have some
coauthors that use stata and I need to send them my data in .dta format.
the data.frame is 41706x229 and I get the following
Error in write.dta(Panel, file = "STATADATA/Panel.dta", version = 7) :
a binary write error occured
Once I subset the data everything works out fine. my
2011 Aug 18
3
Error message: object of type 'closure' is not subsettable
Dear R-users
I need to calibrate kappa, rho, eta, theta, v0 in the following code, see
below. However when I run it, I get:
y <- function(kappahat, rhohat, etahat, thetahat, v0hat) {sum(difference(k,
t, S0, X, r, implvol, q, kappahat, rhohat, etahat, thetahat, v0hat)^2)}
> nlminb(start=list(kappa, rho, eta, theta, v0), objective = y, lower =lb,
> upper =ub)
Error in dots[[1L]][[1L]] :
2017 Jun 28
4
Different date formats in one column
Hi,?
I have a data set with various date formats in one column and not sure how to unify it.Here is a few formats:
02091702/22/170221201703/17/160015-08-239/2/1500170806May-2-201522-March-2014
I tried parse_date_time from lubridate library but it failed.Thanks so much.?Best,Farnoosh
[[alternative HTML version deleted]]
2018 Mar 22
3
exporting data to stata
Hi,
I am new to R and I want to export data into Stata. Could somebody help with that? Thanks a lot.
This is the code I am using:
> setwd("D:/datasets/Seg-bcn/ESBD")
> data1 <- readRDS("r17045_ESDB_Habitatges_BDD_V_1_0.rds")
> library(foreign)
> write.dta(data="data1", file = "D:/datasets/data1.dta")
Error in write.dta(data =
2008 Aug 06
3
Help in running Stata dataset in R
Dear All,
I installed R 2.7.0 and tried to call a dataset i had ealier own called
on R2.6.2 but i keep on getting an error:
use("maltreat.dta")
Error in fromchar(x) :
character string is not in a standard unambiguous format
Tried doing the same with R2.7.1 but i get the same error.
However if i call the same on R 2.6.2, there is no error:
use("maltreat.dta")
> des()
2017 Jun 29
1
Different date formats in one column
Thanks Jeff. This is a nice way of solving this problem. What about the cases with 0015-02-21?Many thanks.?Best,Farnoosh
On Wednesday, June 28, 2017 10:49 PM, Jeff Newmiller <jdnewmil at dcn.davis.ca.us> wrote:
I doubt your actual file looks like the mess that made it to my email
software (below) because you posted HTML-format email. Read the Posting
Guide, and in particular
2011 Aug 06
3
.dta from e-mail
I got a .dta extension file by e-mail, but I can't save it in my computer
and open it in R. How can I do it?
[[alternative HTML version deleted]]
2010 Jun 21
1
survfit function - event information???
Hi all!
I am trying to extract output information from the survfit function in order
to generate a matrix of select output for multiple factors.
Specifically, I am interested in extracting the number of events (in the
output below: 106, 2, 3). The variable names represented in my function
(ee) are shown below, but none of those variables correspond to the column
of events as shown in the output.