Displaying 20 results from an estimated 112 matches for "na_integer_".
2008 Oct 09
1
YALAQ - Yet Another LApply Question
....71, 3.1, 2.87, 2.73, NA,
6.6, 4.53, 4.97, NA, 2.81), bd = c(NA, 4.25, 3.51, 3.08, 4.79,
2.06, 2.83, 1.72, 5.23, 3.15, 2.73, 3.08, 2.84, 2.76, NA, 6.55,
4.58, 4.87, NA, 2.75), ht = c(NA, 20.4, 18.1, 18, 25.8, 13.1,
15.7, 4, 16, 14, 12.7, 8.6, 8.1, 16.2, NA, 52.7, 31.7, 23.7,
NA, 17.6), spr = c(NA_integer_, NA_integer_, NA_integer_, NA_integer_,
NA_integer_, NA_integer_, NA_integer_, NA_integer_, NA_integer_,
NA_integer_, NA_integer_, NA_integer_, NA_integer_, NA_integer_,
NA_integer_, NA_integer_, NA_integer_, NA_integer_, NA_integer_,
NA_integer_), stat = c(1L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0...
2008 Dec 09
2
assign()ing within apply
...ataframes to lower
case.
###
#
# Sample data and 'spp' column summaries:
# dput(ban.ovs.1993[sample(row.names(ban.ovs.1993), 20), 1:4])
ban.ovs.93 <- structure(list(oplt = c(43L, 43L, 38L, 26L, 35L, 8L, 39L,
1L,
34L, 50L, 10L, 29L, 31L, 24L, 18L, 12L, 27L, 49L, 28L, 51L),
rplt = c(NA_integer_, NA_integer_, NA_integer_, NA_integer_,
NA_integer_, NA_integer_, NA_integer_, NA_integer_, NA_integer_,
NA_integer_, NA_integer_, NA_integer_, NA_integer_, NA_integer_,
NA_integer_, NA_integer_, NA_integer_, NA_integer_, NA_integer_,
NA_integer_), tree = c(427L, 410L, 639L, 494...
2013 Oct 30
2
disculpe las molestias ...ayuda con MICE
...3L, 2L, 1L, 3L, 2L, 2L, 2L, 2L, 1L, 2L, 2L, 1L, 2L, 2L, 1L,
3L, 3L, 3L, 1L, 2L, 2L, 3L, 2L, 1L, 2L, 2L, 2L, 2L, 3L, 2L,
2L, 1L, 2L, 1L, 3L, 2L, 3L, 2L, 2L, 2L), .Label = c("Rural",
"Suburban", "Urban"), class = "factor"), pial1a =
structure(c(NA_integer_,
NA_integer_, NA_integer_, NA_integer_, NA_integer_, NA_integer_,
NA_integer_, NA_integer_, NA_integer_, NA_integer_, NA_integer_,
NA_integer_, NA_integer_, NA_integer_, NA_integer_, NA_integer_,
NA_integer_, NA_integer_, NA_integer_, NA_integer_, NA_integer_,
NA_integer_, NA_in...
2013 Oct 30
1
disculpe las molestias ...ayuda con MICE
...2L, 2L, 1L, 2L, 2L, 1L, 2L, 2L, 1L,
> + 3L, 3L, 3L, 1L, 2L, 2L, 3L, 2L, 1L, 2L, 2L, 2L, 2L, 3L, 2L,
> + 2L, 1L, 2L, 1L, 3L, 2L, 3L, 2L, 2L, 2L), .Label = c("Rural",
> + "Suburban", "Urban"), class = "factor"), pial1a =
> + structure(c(NA_integer_,
> + NA_integer_, NA_integer_, NA_integer_, NA_integer_, NA_integer_,
> + NA_integer_, NA_integer_, NA_integer_, NA_integer_, NA_integer_,
> + NA_integer_, NA_integer_, NA_integer_, NA_integer_, NA_integer_,
> + NA_integer_, NA_integer_, NA_integer_, NA_integer_, NA_inte...
2013 Oct 30
0
disculpe las molestias ...ayuda con MICE
...2L, 1L, 3L, 2L, 2L, 2L, 2L, 1L, 2L, 2L, 1L, 2L, 2L, 1L,
+ 3L, 3L, 3L, 1L, 2L, 2L, 3L, 2L, 1L, 2L, 2L, 2L, 2L, 3L, 2L,
+ 2L, 1L, 2L, 1L, 3L, 2L, 3L, 2L, 2L, 2L), .Label = c("Rural",
+ "Suburban", "Urban"), class = "factor"), pial1a =
+ structure(c(NA_integer_,
+ NA_integer_, NA_integer_, NA_integer_, NA_integer_, NA_integer_,
+ NA_integer_, NA_integer_, NA_integer_, NA_integer_, NA_integer_,
+ NA_integer_, NA_integer_, NA_integer_, NA_integer_, NA_integer_,
+ NA_integer_, NA_integer_, NA_integer_, NA_integer_, NA_integer_,
+ NA_integ...
2018 Mar 12
1
Help on Aggregation
Dear All,
1.I have been trying to aggregate my data but I have not been getting it
correctly. In the data I want to convert hourly data into daily averages.
Here is a sample of the data:
Neph_no Date Time Temp_C Pressure_kPa RH
9 2014/03/28 10:00:00 38.4 95.9 29.7
9 2014/03/28 11:00:00 37.8 95.8 29.2
9 2014/03/28 12:00:00 36.7 95.8 35.1
9 2014/03/28 13:00:00 35.4 95.8 38.9
9
2011 Apr 28
1
Extract complete rows by group and maximum
..., 0.9), sstd_mi =
c(FALSE,
FALSE, FALSE, FALSE, FALSE), sstd_hbp = c(FALSE, FALSE, FALSE,
FALSE, FALSE), sstd_ptca = c(FALSE, FALSE, FALSE, FALSE,
FALSE), sstd_cabg = c(TRUE, TRUE, TRUE, TRUE, TRUE), sstd_norm_perf
= c(FALSE,
FALSE, FALSE, FALSE, FALSE), sstd_posnegett = structure(c(NA_integer_,
NA_integer_, NA_integer_, NA_integer_, NA_integer_), .Label = c("-",
"+"), class = "factor"), sstd_function = structure(c(NA_integer_,
NA_integer_, NA_integer_, NA_integer_, NA_integer_), .Label =
c("MODERATE",
"NORMAL", "POOR&...
2009 Jun 03
2
Create a time interval from a single time variable
...l_, NA_real_, NA_real_, NA_real_, NA_real_,
NA_real_, NA_real_), WAZ = c(NA_real_, NA_real_, NA_real_, NA_real_,
NA_real_, NA_real_, NA_real_, NA_real_, NA_real_, NA_real_),
WHZ = c(NA_real_, NA_real_, NA_real_, NA_real_, NA_real_,
NA_real_, NA_real_, NA_real_, NA_real_, NA_real_), Food = c(NA_integer_,
NA_integer_, NA_integer_, NA_integer_, NA_integer_, NA_integer_,
NA_integer_, NA_integer_, NA_integer_, NA_integer_), onARV = c(0L,
0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L), HIVStatus = structure(c(2L,
2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L), .Label = c("", "HIV exposed, stat...
2017 Oct 13
4
Populate one data frame with values from another dataframe for rows that match
...s a snapshot of the data.frames.
myDF1 <- structure(list(studyno = c("J1000/9", "J1000/9", "J1000/9", "J1000/9",
"J1000/9", "J1000/9"), date = structure(c(17123, 17127, 17135,
17144, 17148, 17155), class = "Date"), pf_mcl = c(NA_integer_,
NA_integer_, NA_integer_, NA_integer_, NA_integer_, NA_integer_
), year = c(2016, 2016, 2016, 2016, 2016, 2016)), .Names = c("studyno",
"date", "pf_mcl", "year"), row.names = c(NA, 6L), class = "data.frame")
myDF2 <- structure(list(studyno = c(...
2017 Oct 13
0
Populate one data frame with values from another dataframe for rows that match
...data.frames.
>
> myDF1 <- structure(list(studyno = c("J1000/9", "J1000/9", "J1000/9", "J1000/9",
> "J1000/9", "J1000/9"), date = structure(c(17123, 17127, 17135,
> 17144, 17148, 17155), class = "Date"), pf_mcl = c(NA_integer_,
> NA_integer_, NA_integer_, NA_integer_, NA_integer_, NA_integer_
> ), year = c(2016, 2016, 2016, 2016, 2016, 2016)), .Names = c("studyno",
> "date", "pf_mcl", "year"), row.names = c(NA, 6L), class = "data.frame")
>
> myDF2 <- str...
2017 Oct 13
0
Populate one data frame with values from another dataframe for rows that match
....frames.
>
> myDF1 <- structure(list(studyno = c("J1000/9", "J1000/9", "J1000/9",
> "J1000/9",
> "J1000/9", "J1000/9"), date = structure(c(17123, 17127, 17135,
> 17144, 17148, 17155), class = "Date"), pf_mcl = c(NA_integer_,
> NA_integer_, NA_integer_, NA_integer_, NA_integer_, NA_integer_
> ), year = c(2016, 2016, 2016, 2016, 2016, 2016)), .Names = c("studyno",
> "date", "pf_mcl", "year"), row.names = c(NA, 6L), class = "data.frame")
>
> myDF2 <- str...
2020 May 23
2
Should 0L * NA_integer_ be 0L?
...nce
mentions NA & FALSE = FALSE, NA | TRUE = TRUE. And there's also this
snippet from R-lang:
In cases where the result of the operation would be the same for all
> possible values the NA could take, the operation may return this value.
>
This begs the question -- shouldn't 0L * NA_integer_ be 0L?
Because this is an integer operation, and according to this definition of
NA:
Missing values in the statistical sense, that is, variables whose value
> is not known, have the value @code{NA}
>
NA_integer_ should be an unknown integer value between -2^31+1 and 2^31-1.
Multiplying any...
2017 Oct 14
2
Populate one data frame with values from another dataframe for rows that match
...s a snapshot of the data.frames.
myDF1 <- structure(list(studyno = c("J1000/9", "J1000/9", "J1000/9", "J1000/9",
"J1000/9", "J1000/9"), date = structure(c(17123, 17127, 17135,
17144, 17148, 17155), class = "Date"), pf_mcl = c(NA_integer_,
NA_integer_, NA_integer_, NA_integer_, NA_integer_, NA_integer_
), year = c(2016, 2016, 2016, 2016, 2016, 2016)), .Names = c("studyno",
"date", "pf_mcl", "year"), row.names = c(NA, 6L), class = "data.frame")
myDF2 <- structure(list(studyno = c(...
2020 May 23
0
Should 0L * NA_integer_ be 0L?
...UE = TRUE. And there's also this
> snippet from R-lang:
> In cases where the result of the operation would be the same for all
>> possible values the NA could take, the operation may return this value.
>>
> This begs the question -- shouldn't 0L * NA_integer_ be 0L?
> Because this is an integer operation, and according to this definition of
> NA:
> Missing values in the statistical sense, that is, variables whose value
>> is not known, have the value @code{NA}
>>
> NA_integer_ should be an unknown inte...
2019 Jan 11
2
strtoi output of empty string inconsistent across platforms
...gt;>>> Michael Chirico
>>>>> on Fri, 11 Jan 2019 14:36:17 +0800 writes:
>> Identified as root cause of a bug in data.table:
>> https://github.com/Rdatatable/data.table/issues/3267
>> On my machine, strtoi("", base = 2L) produces NA_integer_
>> (which seems consistent with ?strtoi: "Values which
>> cannot be interpreted as integers or would overflow are
>> returned as NA_integer_").
> indeed consistent with R's documentation on strtoi().
> What machine would that be?
>&...
2019 Jan 11
2
strtoi output of empty string inconsistent across platforms
Identified as root cause of a bug in data.table:
https://github.com/Rdatatable/data.table/issues/3267
On my machine, strtoi("", base = 2L) produces NA_integer_ (which seems
consistent with ?strtoi: "Values which cannot be interpreted as integers or
would overflow are returned as NA_integer_").
But on all the other machines I've seen, 0L is returned. This seems to be
consistent with the output of a simple C program using the underlying
strto...
2015 May 17
1
The function cummax() seems to have a bug.
Hi,
The function cummax() seems to have a bug.
> x <- c(NA, 0)
> storage.mode(x) <- "integer"
> cummax(x)
[1] NA 0
The correct result of this case should be NA NA. The mistake in [
https://github.com/wch/r-source/blob/trunk/src/main/cum.c#L130-L136] may be
the reason.
Best Regards,
Dongcan
--
Dongcan Jiang
Team of Search Engine & Web Mining
School of Electronic
2017 Oct 14
0
Populate one data frame with values from another dataframe for rows that match
...tudyno not in myDF2 and vice versa.
myDF1 <- structure(list(studyno = c("J1000/9", "J895/7", "J931/6", "J666/6",
"J1000/9", "J1000/9"), date = structure(c(17123, 17127, 17135,
17144, 17148, 17155), class = "Date"), pf_mcl = c(NA_integer_,
2L, 3L, 4L, 5L, NA_integer_
), year = c(2016, 2016, 2016, 2016, 2016, 2016)), .Names = c("studyno",
"date", "pf_mcl", "year"), row.names = c(NA, 6L), class = "data.frame")
myDF2 <- structure(list(studyno = c("J740/4", "J1000/9&qu...
2017 Oct 14
2
Populate one data frame with values from another dataframe for rows that match
...>
> myDF1 <- structure(list(studyno = c("J1000/9", "J1000/9", "J1000/9", "J1000/9",
> "J1000/9", "J1000/9"), date = structure(c(17123, 17127, 17135,
> 17144, 17148, 17155), class = "Date"), pf_mcl = c(NA_integer_,
> NA_integer_, NA_integer_, NA_integer_, NA_integer_, NA_integer_
> ), year = c(2016, 2016, 2016, 2016, 2016, 2016)), .Names = c("studyno",
> "date", "pf_mcl", "year"), row.names = c(NA, 6L), class = "data.frame")
>...
2020 Nov 21
3
Error in unsplit() with tibbles
...rep(NA, len)` has size 32.
Run `rlang::last_error()` to see where the error occurred.
Tibble seems to (rightly) complain, that a logical vector has been used for
subsetting which does not have the same length as the data.frame (rows).
Since `NA` is a logical value, the subset should be changed to
`NA_integer_` in `unsplit()`:
> unsplit
function (value, f, drop = FALSE)
{
len <- length(if (is.list(f)) f[[1L]] else f)
if (is.data.frame(value[[1L]])) {
x <- value[[1L]][rep(*NA_integer_*, len), , drop = FALSE]
rownames(x) <- unsplit(lapply(value, rownames), f, drop = dro...