Displaying 20 results from an estimated 6000 matches similar to: "bus error /segmentation fault from 'approx' (PR#7177)"
2004 Aug 13
2
bus error /segmentation fault from 'approx' (PR#7166)
Full_Name: joerg van den hoff
Version: 1.9.0 and 1.7.1
OS: MacOS (1.9.0), SunOS (1.7.1)
Submission from: (NULL) (149.220.4.88)
something like (sure not the originally intended input, but something like this
can happen...):
approx(c(1,2),c(NA,NA),1.5)
crashes R (bus error under MacOS, segmentation fault under SunOS).
search of the bug archive did not work. I hope this bug was not reported
2006 Mar 08
3
bug in map('world') ?
hi,
did'nt see anything in the archive:
map('world',pro='rectangular',para=0)
yields a strange artifact (horizontal bar) extending over the whole map
at a certain latitude range (approx 65 deg. north), whereas
map('world',pro='rectangular',para=180)
(which should be the same) does not show the artifact.
the artifact shows up in other projections as well,
2006 Dec 14
3
sapply problem
I have encountered the following problem: I need to extract from
a list of lists equally named compenents who happen to be 'one row'
data frames. a trivial example would be:
a <- list(list(
df = data.frame(A = 1, B = 2, C = 3)), list(df = data.frame(A = 4,B = 5,C = 6)))
I want the extracted compenents to fill up a matrix or data frame row by row.
the obvious thing to do seems:
b
2009 Jul 21
1
bug in approx crashes R
Dear R-devel,
The following line crashes R
> approx(1, 1, 0, method='const', rule=2, f=0, yleft=NULL, ties='ordered')$y
Process R:2 exited abnormally with code 5 at Tue Jul 21 14:18:09 2009
> version
_
platform i386-pc-mingw32
arch i386
os mingw32
system i386, mingw32
status
major 2
minor 9.1
year
2004 Jun 08
2
Is there an R-version of rayplot
I need to make plots similar to those produced by the s-plus rayplot function but can't seem to find it in R. These 'vector maps' plot a ray or vector at each specified location. Is there something similar in R ?
--Rich
Richard Kittler
AMD TDG
408-749-4099
2013 Jan 16
1
function approx interpolation of time series data sets
Readers,
Am trying to use the function 'approx' to interpolate time series data sets:
data1:
01:23:40 5
01:23:45 10
01:23:50 12
01:23:55 7
data2:
01:23:42
01:23:47
01:23:51
01:23:54
The objective is to obtain interpolated values of 'data1' column 2 (5,
10, 12, 7) for the times shown in data2. Tried the following command
but received the error shown:
2006 Aug 24
4
extremely slow recursion in R?
I recently coded a recursion algorithm in R and ir ran a few days
without returning any result. So I decided to try a simple case of
computing binomial coefficient using recusrive relationship
choose(n,k) = choose(n-1, k)+choose(n-1,k-1)
I implemented in R and Fortran 90 the same algorithm (code follows).
The R code finishes 31 minutes and the Fortran 90 program finishes in 6
seconds. So the
2005 Jul 13
1
unexpected par('pin') behaviour
hi everybody,
I noticed the following: in one of my scripts 'layout' is used to
generate a (approx. square) grid of variable dimensions (depending on
no. of input files). if the no. of subplots (grid cells) becomes
moderately large (say > 9) I use a construct like
###layout grid computation and set up occurs here###
...
opar <- par(no.readonly = T);
2006 Jun 20
2
$
If object is user defined is:
object$df.residual
the same thing as
df.residual(object)
This is my first time to encounter the $ sign in R, I'm new. I'm
reviewing "summary.glm" and in most cases it looks as though the $ is
used to extract some characteristic/property of the object, but I'm not
positive.
Thanks
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2006 Jun 29
1
inconsistent matplot behaviour?
I raised this question quite some time ago but it quitly went down the
river. I'll give it a second try (before keeping my modified version of
matplot for ever...):
matplot supports vectors (and/or character strings) for a number of
arguments namely `type', `lty', `lwd', `pch', `col', `cex'. all of them
act consistently in such a way that the first entries are used
2005 Oct 10
2
problem with lapply(x, subset, ...) and variable select argument
I need to extract identically named columns from several data frames in
a list. the column name is a variable (i.e. not known in advance). the
whole thing occurs within a function body. I'd like to use lapply with a
variable 'select' argument.
example:
tt <- function (n) {
x <- list(data.frame(a=1,b=2), data.frame(a=3,b=4))
for (xx in x) print(subset(xx, select = n))
2004 Apr 21
2
segfault in approx() (PR#6809)
This is R1.9.0, windows XP
I run across the following:
It is admittedly silly, but it shouldn't segfault:
test <- list(y=1:100, x=rep(NaN, 100))
approx(test, xout=rep(NaN, 10))
Bombs!
Kjetil Halvorsen
2012 Jul 03
1
nls problem
hi list,
used versions: 2.12.1 and 2.14.0 under ubuntu and macosx.
I recently stumbled over a problem with `nls', which occurs if the model
is not specified explicitly but via an evaluation of a 'call' object.
simple example:
8<--------------------------------------------------------------------------------------
nlsProblem <- function (len = 5) {
2004 Feb 19
1
efficient matrix approx
Hello,
I am looking for a highly efficient matrix version of linear
interpolation (like approx). As an example I have data like follows:
x<-data.frame(time=1:20, x=(1:20)/10, y=runif(20))
t <- seq(1.5, 15.5 ,by=0.5)
# and I found the following solution:
nam <- names(x)
app <- lapply(x[2:3],approx,x=x$time, xout=t)
r <- c(1, 2*(1:(ncol(x)-1)))
x.new <-
2019 May 08
3
[R] approx with NAs --> new argument 'na.rm=TRUE' ?!
>>>>> Robert Almgren
>>>>> on Fri, 3 May 2019 15:45:44 -0400 writes
[ __ to R-help __ -- here diverted to R-devel on purpose]
> There is something I do not think is right in the approx()
> function in base R, with method="constant" and in the
> presence of NA values. I have 3.6.0, but the behavior
> seems to be the same in
2009 Mar 25
1
Interpolate x from y
Is it possible to interpolate a value for x with knowledge of y?
For example, approx(x, y, xout) will give me y's given a set of x's,
which is opposite to what I'm after. I've tried switching x and y,
e.g., approx(y, x, xout), but in a real data set it is possible to
have more than one y for a given x causing approx() to remove
coordinates.
Thanks for your help,
Greg.
2008 Sep 01
2
Interpolation Problems
Dear all,
I'm trying to interpolate a dataset to give it twice as many values (I'm giving the dataset a finer resolution by interpolating from 1 degree to 0.5 degrees) to match that of a corresponding dataset.
I have the data in both a data frame format (longitude column header values along the top with latitude row header values down the side) or column format (in the format latitude,
2023 Dec 09
1
Linear model and approx function
Dear all;
I have a dataframe with several columns. The columns are the elevation,
volume and the area of the cells (which were placed inside a polygon). I
have extracted them from DEM raster to calculate the volume under polygon
and the elevation for a specific volume of the reservoir.
> head(x6,2)
Elevation Vol Area V_sum A_sum
1 2145 13990.38 85.83053 13990.38
2010 Nov 29
1
Filling in missing time samples with na.approx
Hi Everyone,
I have a some data from a sports gps device like the following:
time latitude longitude altitude distance heartrate
1 1277648884 0.304048 -0.793819 260 0.000000 94
2 1277648885 0.304056 -0.793772 262 4.307615 95
3 1277648888 0.304060 -0.793696 263 11.262347 97
4 1277648894 0.304075 -0.793544 263 25.237911 103
5 1277648898
2005 Jul 21
1
About object of class mle returned by user defined functions
Hi,
There is something I don't get with object of class "mle" returned by a
function I wrote. More precisely it's about the behaviour of method
"confint" and "profile" applied to these object.
I've written a short function (see below) whose arguments are:
1) A univariate sample (arising from a gamma, log-normal or whatever).
2) A character string