Displaying 3 results from an estimated 3 matches for "na_s".
Did you mean:
na's
2011 Feb 23
2
copy values from one dataframes into another
Hello everyone,
I have the following problem, I have a dataframes that looks like this:
fire$Year fire$Size
1 1981 1738.0
2 1984 2228.1
3 1985 38963.3
4 1986 2223.4
5 1987 3594.6
6 1988 1520.0
...
What I would like to do is copy the values from the fire$Size colum and put
it into a new df but with "0" for the years that are missing. The
2017 Feb 16
6
Ayuda con Date
Hola.
Tengo una duda con esta sintaxis. Tengo una variable con formato Date que
por algún motivo (el data.table viene de una consulta con PostgreSQL):
datos <- prov[, pprid, pprfecbaja]
str(datos)
Cuando intento quitar las fechas de bajas inválidas (0001-01-01) y
convertirlas a NA, la variable resultante "pierde" su condición de Date.
Probé con distintas formas, siempre con el mismo
2023 Nov 06
1
c(NA, 0+1i) not the same as c(as.complex(NA), 0+1i)?
Hmm, it is not actually at odds with help(c), it is just that the autocoercion works different that it used to, so that
as.complex(NA) == as.complex(NA_real) == NA_real_+0i)
which now differs from
NA_complex
although both print as NA.
I haven't been quite alert when this change was discussed, but it does look a bit unfortunate that usage patterns like c(NA, 0+1i) does not give complex NA