Displaying 20 results from an estimated 20000 matches similar to: "multiple separators in scan() functions"
2008 Sep 20
2
AUC / ROC for presence only.
Dear all,
I have a probability of presence of distribution of a species of interest
(varying from 0 to 1 in continuous form) and I have a set of points
where I know that species really occurs. But I don´t have points of absence.
So, for each true presence I know the estimated presence.
I would like to know how can I compute AUC, taking account these
Available data.
Best wishes,
2008 Feb 27
4
plot y1 and y2 on one graph
Dear all
I have a code like
x<-1:10
y1<-x+runif(10)*2
y2<-seq(0,50,length.out=10)+rnorm(10)*10
par(mfrow=c(1,2))
plot(y1~x)
plot(y2~x)
Now I would like to plot y1 and y2 on the same graph, with its two scales
(y1 on left and y2 on rigth side).
Any help are welcome.
Kind regards
Miltinho
Brazil
	[[alternative HTML version deleted]]
2008 Jun 21
2
clicking on plot and recording XY coords
Dear all,
I need to run a interactive procedure where the user
will need click on the screen (over a XY plot)
and I need to record the XY coordinate which the
user clicked. Roughly I wrote a short code below.
You see that I suppose that the user will choose
four coordinates inside the region of intersection
between three segmentes. On each click, I would like to
record the position clicked in a
2008 Sep 29
3
replicating dataframe rows
Dear all,
I have a data.frame like the sample below, and I would
like to expand my data.frame using "population" variable.
So, for each line of my data.frame I would like that
the new data.frame have many rows as the population collumn.
place<-c("place1", "place2", "place3", "place4", "place5")
population<-c(100,200,300,50,30)
2008 May 19
1
three-dimensional (volumetric) estimation from x,y,z points
Dear all,
I have a set of x,y,z points obtained from
a lizard species and now I would like to
estimate the three-dimensional use of space
for this species. I know that 2D area I can
estimate using adehabitat packages, but
I don´t know how to estimate the volumetric
space.
Any help are welcome.
Miltinho
Brazil
	[[alternative HTML version deleted]]
2008 Oct 07
1
Ecological Niche Modelling on R
Dear all,
I have strong interest on Ecological Niche Model, which in general use a set
of environmental variables (continuous, categorical etc) and Presence (or
Presense/Absence) records for species. I think that "grasp" and "adehabitat"
packages could help me on these tasks.
My input layers are on ASC format, and the record of species is a data-frame
with X, Y, name of
2009 Mar 18
1
time difference (from date function)
Dear all,
I have two variables which contents are date() function answers, like:
d1<-date()
d2<-date()
Now I need to compute the difference between d2 and d1 (in minutes).
Any help are welcome.
Best wishes
miltinho
brazil
	[[alternative HTML version deleted]]
2008 Aug 18
2
changing plot font for Times new roman
Dear all,
I know that it is a know issue, but I would like to change
the type of font on my plot, and I am not sure the
rigth way. I would like to use Times New Roman font,
but according to the "par()" help, some device allow
we choose an family of fonts. I tryed par(family="times")
without success.
Surfing on R archieve I got an suggestion of
use par(font.lab=6), but when I
2006 May 01
2
Pasting data into scan()
The file TENSILE.DAT from the Hand et al "Handbook of Small Data Sets" 
looks like this:
0.023	0.032	0.054	0.069	0.081	0.094
0.105	0.127	0.148	0.169	0.188	0.216
0.255	0.277	0.311	0.361	0.376	0.395
0.432	0.463	0.481	0.519	0.529	0.567
0.642	0.674	0.752	0.823	0.887	0.926
except that my mail client has replaced the tab separators by blanks. If 
I paste this data into R 2.2.1 what I get is
2008 Apr 22
4
Modeling presence only data in R
Dear All,
I have a set of environental maps and presence-only points for some species.
How can I generate distributions models on R using these presence-only data?
What packages and functions can I use to do so?
Kind regards,
Miltinho
Brazil
	[[alternative HTML version deleted]]
2006 Jun 17
2
substr or split help needed
Um texto embutido e sem conjunto de caracteres especificado associado...
Nome: n?o dispon?vel
Url: https://stat.ethz.ch/pipermail/r-help/attachments/20060617/d28b0fb4/attachment.pl
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
2008 Jul 06
4
Numbers as Points in Graphs
I am trying to produce a simple plot where the points in the plot are
actually integers from my data. That is, I am making a length/width plot and
I would like the points, rather dots or triangles, appear as different
numbers corresponding to a column in my data. I have tried using this:
...,pch="column title"
but this merely returns the first letter of the column title, B. Is there
2008 Jul 05
3
trying to superimpose a line plot onto a histogram
Hello,
I'm trying to superimpose a line plot onto a histogram but I'm not having
any luck. I've attached the dataset. What I did was:
> hist(data,freq=F)
Now I'm trying to superimpose the following points with a line connecting
them onto the histogram:
 x            y
100  0.535665393824959
200  0.212744329736556
300  0.0844933242968584
400  0.0335572838043417
500 
2008 Apr 19
2
multiple separators in sep argument for read.table?
Hello,
Is there any way to add multiple separators in the sep= argument in
read.table? I would like to be able to create different columns if I see a
white space OR a "/".
Thanks in advance,
JJ
	[[alternative HTML version deleted]]
2008 Feb 26
1
changing format of y-axis (barplot)
Dear all,
I have some data.frame and I would like (1) change the format of y=axis to
escape of scientific format (like 1e+05...) and (2) label the value or other
variable on the top of the bar.
df<-data.frame(x=1:6,y=c(100,500,1000,25000,500000,1000000))
barplot(df$y,names.arg=df$x)
Thanks in advance,
miltinho
Brazil
	[[alternative HTML version deleted]]
2009 Dec 23
1
removing rows with NAs in anywere
Dear all,
I have a data.frame with some NAs that can
happens anywere, and I would like to keep
only rows without NAs. Thanks in advance
for your help, and Merry Xmas.
myvect<-runif(100)
myvect[sample(1:100)[1:5]]<-NA
myDF<-data.frame(matrix(myvect,ncol=5))
myDF
miltinho
	[[alternative HTML version deleted]]
2008 Jul 19
1
estimating volume from xyz points
Dear all,
I have several sets of x-y-z points and I need to estimate the volume that
encompass all my points.
Recently I got some adivice to show the "convex hull" of my points using
geometry package (see code below).
But now I need to calculate the volume of my set of points.
Any advice are wellcome.
Thanks in advance
Miltinho Astronauta
Brazil
-----
require(geometry)
library(rgl)
2008 Sep 10
3
making spearman correlation cor() call fail with log(0) as input
Hi,
How can I make the cor(x, y, method="spearman") call to produce an
error when the input to it (x, y) produces an error? Here is a simple
example:
> a <- c(0, 1, 2)
> b <- c(100, 2, 4)
## error:
> log(a)
[1]      -Inf 0.0000000 0.6931472
## error, as expected:
> cor(log(a), log(b), method="pearson")
[1] NaN
## not an error any more (not expected):
>
2008 Feb 11
5
Length problem
Hi all
   I have this problem:
   In my database .dta, called "data" I have five rows
   data<-read.dta("C:\\2_CO_mmobile_ALL_Rid.dta")
   # From this database  I wuold like to create another
   coppie<-c(data[4:length(data)])
   but I find this
   # Length of  original data
   length(data[,4])
   5                       RIGHT!!
   # Length of new data