Displaying 4 results from an estimated 4 matches for "as_vector".
Did you mean:
ac_vector
2006 Jul 18
2
send a list from R to C
...oblems, if I don't use character and I have
also no problems to give a character vector form R to C. But, if I combine
real and strings in a list then I don't know the correct syntax.
I try it with following (an example):
SEXP writeFile(SEXP headerR){
Image *SaveImage;
PROTECT(headerR = AS_VECTOR(headerR));
SaveImage->Xmin = (float) REAL(VECTOR_ELT(headerR, 0))[0];
SaveImage->Ymin = (float) REAL(VECTOR_ELT(headerR, 0))[1];
strcpy(SaveImage->Description, CHAR(STRING_ELT(headerR, 1)));
}
where
typedef struct {
float Xmin;
float Ymin;
char Description[80];
} Image;
But with...
2017 Jun 08
2
add_model paquete modeval
Estimados compañeros me gustaría saber si alguno ha utilizado la función
add_model del paquete modeval cuando la variable de clasificación (y)
tiene más de dos niveles. Porque si la utilizo con más niveles siempre
me sale el error:
Error: length(levels(factor((purrr::as_vector(y))))) == 2 is not TRUE Me
parece muy interesante el paquete y no veo donde indica esta limitación.
Un cordial saludo, Juan
--
Juan Antonio Gil Pascual
Profesor de Metodología de la Investigación Cuantitativa
correo: jgil en edu.uned.es
web: www.uned.es/personal/jgil
Dpto. MIDE
Facultad de Edu...
2017 Jun 08
2
add_model paquete modeval
...os me gustaría saber si alguno ha utilizado la
> función
> add_model del paquete modeval cuando la variable de clasificación (y)
> tiene más de dos niveles. Porque si la utilizo con más niveles siempre
> me sale el error:
>
> Error: length(levels(factor((purrr::as_vector(y))))) == 2 is not
> TRUE Me
> parece muy interesante el paquete y no veo donde indica esta
> limitación.
> Un cordial saludo, Juan
>
> --
> Juan Antonio Gil Pascual
> Profesor de Metodología de la Investigación Cuantitativa
> correo: jgil...
2001 Apr 23
1
several bugs (PR#918)
...ehaves differently in R than in S and I think this
shows a bug in how S3 classes are implemented.
R:
> as.numeric
function (x, ...)
UseMethod("as.double")
> as.double
function (x, ...)
UseMethod("as.double")
S:
> as.numeric
function(x)
Internal(as.numeric(x), "As_vector", T, 4)
> as.double
function(x)
.Internal(as.double(x), "As_vector", T, 4)
>
As a consequence, a user function
as.numeric.mv
doesn't work as a method in R because it never gets called when
accessed as as.numeric(x).
> objects()
character(0)
> a <- list(NA)
&g...