Hi
Sigh I'm getting a headache seeing ugly formatted R code. Arun, your code is
almost unreadable. Have a look at e.g.
http://yihui.name/en/2010/04/formatr-farewell-to-ugly-r-code/
Now to the substantial. Why not use the sprintf() function for formatting the
url instead of the more involved
Hi
Have a look at the write.fwf ( fixed width format) in gdata package.
### load package
library(gdata)
### Create a sample data matrix
set.seed(4324)
myMat - matrix(rnorm(9), 3,3)
### cannot get it tp work with matrix so cast to dataframe
write.fwf(as.data.frame(myMat), file = , sep
Le vendredi 11 avril 2014 à 16:02 -0700, Fisher Dennis a écrit :
R 3.0.2
OS X Mavericks
Colleagues
I have a file that I converted from SAS (sas7bdat) to CSV (filename:
ORIGINAL.csv). I try to read it with read.csv and I receive the error
message:
Error in type.convert(data[[i]],
This looks not so elegant, while normally data provider must have a
nice accessing API, anyway, for example you can do this:
myAdd -
HI,
Thanks for the link.
I should have used ?sprintf(). BTW, I am not able to reproduce your results.
urlPattern -
HI,
Please ignore the previous message. I copied your codes directly from the
email. For some reason, the urlPattern - ... showed some special characters.
I manually fixed it and now it is working.
Hi Arun
It seems to be an error on the server side and not on the client.
The error on the server results in the client receiving a string giving the
type of error on the server. And this doesn't work with read.table of course.
So if one wants to query for thousands of point one really needs
Oh, I see.
Actually I forgot to check whether if could be an advantage to use the
URLencoding () function on queryUrl. I'll check later.
Br. Frede
Sendt fra Samsung mobil
Oprindelig meddelelse
Fra: arun
Dato:12/04/2014 12.45 (GMT+01:00)
Til: Frede Aakmann Tøgersen
Cc:
Dear Folks--
I have a file with 3 million-odd rows of data from the 2007 U.S. Economic
Census. I am trying to pare it down to a subset of rows that both (1) has
any one of a vector of NAICS economic sector codes, and (2) also has any
one of a vector of geographic ID codes.
Here is the code I am
You need %in% instead.
This is untested, but something like this should work:
ECwork - EC07_A1[ EC07_A1$GEO_ID %in% c(01000US, 04000US06, 33000US488,
31000US41860, 31400US4186036084 05000US06001, E6000US0600153000)
EC07_A1$SECTOR %in% c(32, 33, 42, 44, 45, 51, 54, 61, 71,
81), ]
(Note
Running rstudio (server) on an ipad.
I do'nt have an ipad anymore, but some years ago I noticed that rstudio
(server) worked fine on an ipad of you have a separate keyboard. It does
not work with the virtual keyboard. The same is true with android tablets.
Frans
2014-04-12 3:38 GMT+02:00 Roy
Dear all,
I am using package rgl and I want to change the position where I stand.
Maybe a small example might clarify what I am looking for:
# Begininng of explanatory example
library(rgl)
data(volcano)
# the example ?rgl.surface
y - 2 * volcano
x - 10 * (1:nrow(y))
z - 10 * (1:ncol(y))
ylim -
On 12/04/2014, 11:19 AM, Roland Rau wrote:
Dear all,
I am using package rgl and I want to change the position where I stand.
Maybe a small example might clarify what I am looking for:
# Begininng of explanatory example
library(rgl)
data(volcano)
# the example ?rgl.surface
y - 2 * volcano
x -
Grand,
Thank you. I have been able to use my iPad to connect to a server running
RStudio server as described in an earlier email and can use the virtual
keyboard, which works but is not convenient as one needs to go from keyboard
screen to another.
My current problem is that while I can get
That you cannot reach your home LAN from the Internet without learning
something about networking is a good thing, since that offers some hope that
the Russian Mafia can't use your computer to launch criminal activities against
the rest of us, either.
Studying how to set up a VPN on your
You will have to enter the external IP address and then use port forwarding.
Just google for that term (port forwarding) ... For example:
http://www.howtogeek.com/66214/how-to-forward-ports-on-your-router/
http://en.wikipedia.org/wiki/Port_forwarding
Best,
Wolfgang
Dear R users.
I am trying to program the comp() routine in package survMisc.
I am reading the data below with d=read.table( C:\\. .
.,fill=TRUE,header=TRUE)
Then I load the packages 'survival' and 'survMisc', library(survival),
library(survMisc)
and I run the commands
Hello,
R version 3.1.0 was released yesterday, and as always is welcome with great
pleasure. One
of the features that is of particular interest to me is the support for C++11.
I would encourage you to read
[Writing R
Thanks Sarah! That worked!
And you are quite right about the absence of parentheses and EC07_A1$ 's.
I apologize for sending that code snip -- I am not quite sure how I managed
to do it, since I had already fixed those problems and changed the code in
order to get the error message I posted.
Hi Andrew,
On Apr 12, 2014, at 6:36 PM, Andrew Hoerner ahoer...@rprogress.org wrote:
Thanks Sarah! That worked!
And you are quite right about the absence of parentheses and EC07_A1$ 's.
I apologize for sending that code snip -- I am not quite sure how I managed
to do it, since I had
Oops! Spoke too soon.
Your fix fixed the problem I was having before, but it turns out the test
is now accepting every line. So there is still some problem with the logic
or with my implimentation of it.
I thought I should produce a reproducible example without 3 million lines
of data. I made a
Hi, I am trying to add some pie charts in a list of coordinates.
Please find attached data I am using
Basically I am using this commands:
data-read.csv(file.choose(),header=T) coordinates(data) = ~ x + y
proj4string(data) = CRS(+proj=longlat +datum=WGS84) # colPalette defines
colors for plot
On 12.04.2014 22:39, Alpesh Pandya wrote:
Thank you for response Uwe. I tried multiple times by downloading the zip
file from many sources but still the same error. This is a major road block
for me in using R. Appreciate any help on this.
Please ask your local IT staff.
I get, using the
On 04/13/2014 09:20 AM, drunkenphd wrote:
Hi, I am trying to add some pie charts in a list of coordinates.
Please find attached data I am using
Basically I am using this commands:
data-read.csv(file.choose(),header=T) coordinates(data) = ~ x + y
proj4string(data) = CRS(+proj=longlat
Jim thx,
Can you please provide me an example how to use my csv data with plotrix
float.pie???
--
View this message in context:
http://r.789695.n4.nabble.com/Pie-charts-using-plotGooglemaps-tp4688678p4688683.html
Sent from the R help mailing list archive at Nabble.com.
See inline.
On Apr 12, 2014, at 7:04 PM, Andrew Hoerner ahoer...@rprogress.org wrote:
Oops! Spoke too soon.
Your fix fixed the problem I was having before, but it turns out the test is
now accepting every line. So there is still some problem with the logic or
with my implimentation of
Dear R Experts,
Does anyone have advice for how to nest random effects in the MCMCglmm package?
Right now, I am running my models with Individual as a random effect; however,
the 25 individuals in my study are birds taken from 13 different nests, so I
feel that a more accurate model would
I'm trying to have two legends on a chart, with two sets of data with
subgroups. Currently ggplot is are merging the to sets of data together.
I would like to have the vertical lines in there own legend and not affect
the colour shading or show up in the type legend.
How would I go about doing
Thank you for response Uwe. I tried multiple times by downloading the zip
file from many sources but still the same error. This is a major road block
for me in using R. Appreciate any help on this.
On Fri, Apr 11, 2014 at 6:53 PM, Uwe Ligges lig...@statistik.tu-dortmund.de
wrote:
Works for
Dear R users,
the frailtypack package, for the analysis of correlated survival data,
has been updated on CRAN.
The major changes in version 2.6 are:
* Fit now a multivariate gaussian frailty model (two types of recurrent
events and a terminal event). For instance here is a model that fits a
Hi, I am a complete novice and dummy when it comes to statistics so I apologise
in advance... I have been asked to report the results of my GLMMs (I ran two)
in a table. This table must state: effect, standard error, test statistic, and
P value, for all fixed effects. Unfortunately I am
@Uwe I tried the same steps from office as well as home network with same
results. Are you using windows 7 with R 3.0.3?
I have seen same question being asked by others without any resolution. Is
anything special about XML package? I am OK use older version of package
but in archives there are no
Hi, I am a complete novice and dummy when it comes to statistics so I apologise
in advance... I have been asked to report the results of my GLMMs (I ran two)
in a table. This table must state: effect, standard error, test statistic, and
P value, for all fixed effects. Unfortunately I am
33 matches
Mail list logo