Displaying 20 results from an estimated 100 matches similar to: "Introduction to maps (of Denmark)?"
2007 Mar 20
1
Error in nlme with factors in R 2.4.1
Hi,
the following R lines work fine in R 2.4.0, but not in R 2.4.1 or any devel versions of R
2.5.0 (see below for details).
library(drc) # to load the dataset 'PestSci'
library(nlme)
## Setting starting values
sv <- c(0.43355869, 2.49963220, 0.05861799, 1.73290589, 0.38153146, 0.24316978)
## No error
m1 <-
nlme(SLOPE ~ c + (d-c)/(1+exp(b*(log(DOSE)-log(e)))),
fixed =
2007 Sep 12
1
plot vs curve
Dear list members,
is it intentional that:
curve(cos, xlim = c(-5, 5))
plot(cos, xlim = c(-5, 5))
produce different plots?
Shouldn't the 'xlim' argument in both cases set the 'from' and 'to' argument if they
aren't supplied (at least that's what I understood reading the help page for 'curve' and
'plot.function')?
Christian
>
2012 May 10
1
fda problems - version correct?
Dear friends - I am trying to understand fda and working with the 2009
book from Springer. I run the scripts directly from a new installed fda
library and include sessionInfo() below. This is from the script
fdarm-ch09.R - I seem to have got not fda_2.2.8 but 2.2.7 - is that
the problem? Where do I get .8 as I just reinstalled? Best wishes
Troels Ring, Nephrology
Aalborg, Denmark
>
2009 Feb 02
1
Assigning colnames in loop
Dear R-listers,
I am trying to assign colnames to a data frame within a loop, but I keep
getting a "target of assignment expands to non-language object"-error. I
need to split up a large dataset into about 20 smaller ones, and I would
like to assign colnames within the loop, so I won't have to type the
same thing 20 times over.
I have concocted this really goofy example which
2011 Jan 24
1
Strange result from sort: sort(c("aa", "ff")) gives "ff" "aa" with R.2.12.1 on windows 7
Dear list,
Please consider the following call of sort
> sort(c("a","f"))
[1] "a" "f"
> sort(c("f","a"))
[1] "a" "f"
>
> sort(c("aa","ff"))
[1] "ff" "aa"
> sort(c("ff","aa"))
[1] "ff" "aa"
The last two results look strange
2009 Jan 26
1
Sweave'ing Danish characters
Hi,
I am writing an Sweave document and am using 'xtable' to make frequency tables of diagnoses of people undergoing cholecystectomy. Some of these diagnoses contain Danish characters ("?", "?", and "?"), and these characters are all garbled in the Latex document after I run Sweave. The odd thing is, everything looks absolutely right in the R console, and if
2011 Sep 15
1
Can't get installing a package source (.tar.gz) from a web page to work...
I have created an R-package with datasets which I want my students to install (the package is not on CRAN).
1) I've put the package on the web in a directory called 'data' and I thought I could do:
> install.packages("http://gbi.agrsci.dk/statistics/courses/2011-ISMLS-course/data/LiSciData_0.0-03.tar.gz",repos=NULL,type="source")
Warning: invalid package
2017 Oct 11
6
changing "," to "." in data.frame
Dear friends - I have a data.frame with "," instead of "." and found the
discussion
http://r.789695.n4.nabble.com/How-to-replace-all-commas-with-semicolon-in-a-string-tt4721187.html#a4721192
so copying the code of Ulrik(I hope:-)) I tried
(making some data)
AX <-
2017 Oct 11
0
changing "," to "." in data.frame
And as follow up,
fff<-function(x) gsub(",", ".", x)
BX <- apply(apply(AX, 2, fff), 2, as.numeric)
this seems to be easier.
Cheers
Petr
S pozdravem | Best Regards
RNDr. Petr PIKAL
Vedouc? V?zkumu a v?voje | Research Manager
PRECHEZA a.s.
n?b?. Dr. Edvarda Bene?e 1170/24 | 750 02 P?erov | Czech Republic
Tel: +420 581 252 256 | GSM: +420 724 008 364
petr.pikal at
2006 Sep 25
1
nlme with a factor in R 2.4.0beta
Hi,
the following R lines work fine in R 2.4.0 alpha (and older R versions), but not in R
2.4.0 beta (details below):
library(drc) # to load the dataset 'PestSci'
library(nlme)
## Starting values
sv <- c(0.328919, 1.956121, 0.097547, 1.642436, 0.208924)
## No error
m1 <- nlme(SLOPE ~ c + (d-c)/(1+exp(b*(log(DOSE)-log(e)))),
fixed =
2008 Oct 02
1
possible bug in function 'var' in R 2.7.2?
Dear R-Help,
I have used R2.6.0 until I recently installed also R2.7.2 (see details below)
In R 2.6.0, the following script using the function 'var' (cor(stats)):
x.test <- c(NA, NA, NA, NA)
var(x.test, na.rm=T)
gives the output:
NA
In R2.7.2 the output of the same script generates an error message and stops R:
'Error in var(x.test, na.rm = T)
2009 Feb 17
1
stopping stepAIC (MASS package)
Dear R-listers,
I am building a prediction model starting with many, many variables. I
use the 'stepAIC' procedure in the MASS package, and the model building
process takes several hours to complete. At the very end, I am
occasionally confronted with warnings like this one:
Warning messages:
1: In fitter(X, Y, strata = Strata, offset = offset, weights = weights,
:
Loglik converged
2005 Aug 22
1
Example in pdf() help file (PR#8083)
The example in the help file for pdf() plots the characters outside
the plotting area in this for loop:
for(i in c(32:255)) {
x <- i
y <- i
points(x, y, pch=i)
}
The following loop seems to be working as intended
for(i in c(32:255)) {
x <- (i-31)%%16
y <- (i-31)%/%16
points(x, y, pch=i)
}
As an extra
2006 May 03
0
RE: [asterisk-biz] Colocation Denmark
Try these guys: http://easyspeedy.com/
Haven't tried them, but when I was looking into a while back they
responded quickly.
-- Bjorn
-----Original Message-----
From: asterisk-biz-bounces@lists.digium.com
[mailto:asterisk-biz-bounces@lists.digium.com] On Behalf Of Sahil Gupta
Sent: Wednesday, May 03, 2006 1:47 PM
To: asterisk-users@lists.digium.com
Cc: asterisk-biz@lists.digium.com
Subject:
2010 Jun 07
0
Head of Department of Applied Statistics and Epidemiology - Institute of Cancer Epidemiology, Copenhagen, Denmark
Head of Department of Applied Statistics and Epidemiology - Institute of Cancer Epidemiology, Copenhagen, Denmark
The Institute
Population-based cancer research in the Nordic countries is in the international forefront. Since the foundation of the Danish Cancer Registry in 1942 the Institute of Cancer Epidemiology has played a significant role in this research area. The Institute is looking
2010 Nov 19
1
Color Alaska in USA map
Hello:
I have a problem when I tried to color the USA map with different colors. The following is my data (I only used the second column of data):
alaska, 1, 2
Hawaii, 0, 0
USA, 5, 5
And here is my code:
library("latticeExtra")
library("mapproj")
state<-read.table("C:\\usaclass.txt",sep=",")
state
2010 May 14
2
help color coding map in R
I am trying to create a map with selected states based on highest to lowest mean cost. The following code properly selects the correct states, and the legend is properly color coded with ranges, but the colors per range does not match the state colors. I need help getting the state colors to match the ranges outlined in the legend. I have tried ordering the mean amounts and this correctly creates
2012 Nov 20
2
[lattice] how to overlay a geographical map on a levelplot?
r-help lattice adepts:
I have a question which is somewhat geospatial, so I posted to r-sig-geo
rather than here:
https://stat.ethz.ch/pipermail/r-sig-geo/2012-November/016757.html
> summary: How to overlay a geographical map on each panel in a lattice
> (or Trellis), e.g., of levelplot's? Note I am not inquiring about
> creating choropleth maps[,]
which Sarkar 2008 covers quite
2003 Jan 08
2
Maps in R
Is there a way to generate maps in R. Specifically, I have calculated
estimates of intra-regional inequality for US states, and would like to
project that information onto a map.
Thanks,
Nirmala
2012 Feb 01
3
Plotting bar graph over a geographical map
Hi,
I am looking for a way to plot bar on a map instead of the standard points.
I have been using ggplot2 and maps libraries.
The points are added with the function geom_point. I know that there is a
function
geom_bar but I can't figure out how to use it.
Thank you for your help,
Simon
### R-code
library(ggplot2)
library(maps)
measurements <-