Displaying 4 results from an estimated 4 matches for "almgren".
2019 May 03
2
approx with NAs
...argument, indicating whether we wish to delete NA values, or treat them as actual values on the corresponding interval. That option makes even more sense for approx() than for mean(), since the NA values apply only on small regions of the data range.
--Robert Almgren
Example:
: R --vanilla
R version 3.6.0 (2019-04-26) -- "Planting of a Tree"
Copyright (C) 2019 The R Foundation for Statistical Computing
Platform: x86_64-apple-darwin15.6.0 (64-bit)
...
> t1 <- 1:5
> x1 <- c( 1, as.numeric(NA), 3, as.numeric(NA), 5 )
> print(data.frame...
2019 May 03
2
approx with NAs
...argument, indicating whether we wish to delete NA values, or treat them as actual values on the corresponding interval. That option makes even more sense for approx() than for mean(), since the NA values apply only on small regions of the data range.
--Robert Almgren
Example:
: R --vanilla
R version 3.6.0 (2019-04-26) -- "Planting of a Tree"
Copyright (C) 2019 The R Foundation for Statistical Computing
Platform: x86_64-apple-darwin15.6.0 (64-bit)
...
> t1 <- 1:5
> x1 <- c( 1, as.numeric(NA), 3, as.numeric(NA), 5 )
> print(data.frame...
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....
2019 May 10
0
[R] approx with NAs --> new argument 'na.rm=TRUE' ?!
...1.0 1.0 1.0 NA NA 3.0 3.0 4.0 NA
linear TRUE 1.0 1.0 1.5 2.0 2.5 3.0 3.5 4.0 NA
FALSE 1.0 1.0 NA NA NA 3.0 3.5 4.0 NA
>>>>> Martin Maechler
>>>>> on Wed, 8 May 2019 11:46:14 +0200 writes:
>>>>> 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
>> pr...