Displaying 20 results from an estimated 10000 matches similar to: "unlist kills R"
2005 Apr 11
2
dealing with multicollinearity
I have a linear model y~x1+x2 of some data where the
coefficient for
x1 is higher than I would have expected from theory
(0.7 vs 0.88)
I wondered whether this would be an artifact due to x1
and x2 being correlated despite that the variance
inflation factor is not too high (1.065):
I used perturbation analysis to evaluate collinearity
library(perturb)
2014 Feb 20
2
Lugar viñeta paquete
Hola,
He terminado de escribir la viñeta de un paquete de R que he
desarrollado y terminado, el cual quiero subir al CRAN pero me he
encontrado un problema que anteriormente no me ocurría.
Hasta ahora, la viñeta la colocaba en el directorio /inst/doc. Es lo que
he hecho para instalarme el paquete en mi ordenador, en Fedora 18 con R
2.15.2 y todo se me ha instalado correctamente y a la viñeta
2005 Jul 05
2
Java and R help
Im doing an aplication in Java and i have a program made in R what i
want to launch with Java.
I have the following instructions:
Runtime r = Runtime.getRuntime();
try
{
System.out.println ("Llamada a R...");
p = r.exec(sRutaR);
}
catch (IOException e)
{
System.out.println ("Error lanzando R: " +
2005 Feb 04
1
Rare Cases and SOM
I am trying to understand how the SOM algorithm works
using library(class) SOM function.
I have a 1000*10 matrix and I want to be able to
summarize the different types of 10-element vectors.
In my real world case it is likely that most of the
1000 values are of one kind the rest of other (this is
an oversimplification).
Say for example:
InputA<-matrix(cos(1:10),nrow=900,ncol=10,byrow=TRUE)
2014 Feb 28
3
Lugar viñeta paquete
Hola,
Muchas gracias por la respuesta. Sí, hace un par de días pude averiguar
dónde se debe colocar la viñeta. Lo resumo a continuación por si a
alguien le puede servir:
1) Los archivos de la viñeta (los .Rnw) se ponen en la subcarpeta
/vignettes.
Ahora, suponiendo que nuestro paquete se llama paq, hay que hacer
R CMD check paq
R CMD build paq
R CMD INSTALL paq_xxx.tar.gz (donde xxx es la
2018 Feb 22
2
Filtrado de variables
Es cierto, una vez más entendí todo mal. Mis disculpas.
La solución con SQL no va nada corta, me parece:
# filtrar el mes en el que todos los campos de la columna RESULTADO son NA
sqldf("
select *
from DF
where mes in
(
select a.mes from
(
select mes, count(*) as total_NA
from
(select *
from DF
where resultado=' NA ')
group by
2014 May 22
2
reshape2
Te agradezco mucho Javier por tu mensaje, sobre el tema de referencia,
solamente que al poner la instrucción library dataset, el sistema
responde Error in library(dataset) : there is no package called ‘dataset’.
Lo anterior sucede tanto con R 3.0.3 como con R 3.1.0 pero además al entrar
a los directorios, encuentro que en los dos casos sí existen las carpetas
library y dentro de éstas también
2018 Feb 22
2
Filtrado de variables
Ya... de esta forma tampoco obtienes el mes que tiene todos sus valores
NA...que es la duda ..
Otra forma más sencilla con data.table que la que envié anteriormente...
>
> Lines <- "MES|VARIABLE|RESULTADO|
+ 1|A|SI|
+ 1|B|SI|
+ 1|C|NO|
+ 2|A|NA|
+ 2|B|SI|
+ 2|C|SI|
+ 3|A|NO|
+ 3|B|NO|
+ 3|C|NO|
+ 4|A|NA|
+ 4|B|NA|
+ 4|C|NA|"
>
> DF <- read.table(textConnection(Lines),
2018 Oct 22
2
Chapuza total?? Crear web con R
Buenas Victor,
Gracias por el mail. Suele pasar lod e descubrir el paquete una vez que has terminado el curro.. jejejeje
Las webs estan bien, pero estaba pensando mase n webs de formularios..
No obstante, lo tomo en cuenta. Muchas gracias
Jes?s
________________________________
De: V?ctor Granda Garc?a <victorgrandagarcia en gmail.com>
Enviado: lunes, 22 de octubre de 2018 22:17
Para:
2018 Feb 22
2
Filtrado de variables
El jue, 22-02-2018 a las 09:52 +0100, Carlos Ortega escribió:
> Aquí tienes un par de formas...
... y aún una más, con el siempre fiel lenguaje SQL:
library(sqldf)# corriendo antes lo que hizo don Carlos pero dejándolo como un data.frame tradicional:DF<-as.data.frame(DF)sqldf("select * from DF where resultado=' NA '")
¡Saludos!
--
«...homines autem hominum causa esse
2013 Feb 13
4
Equivalente a paper="a4", pero en pantalla gráfica
Buenas tardes:
Quería lograr el efecto "expansivo" que se consigue con la opción paper="a4" de la función pdf, pero sin volcar en pdf; es decir, yo quiero enviar mi gráfico (luego definiré sus propiedades) a la salida gráfica (RGui) de modo que quede con verticalidad, como en un A4, y luego el usuario final es libre de guardar en pdf o no, con el propio RGui.
Ahora voy a
2014 Feb 26
2
error en ifelse
El problema puede estar en el no uso de suficientes paréntesis. Por
ejemplo, con:
> a=1
> b=0
> c=0
la instrucción
ifelse(((a>1) | (b=0) | (c=1) | (d=1)), 11, 22)
da el resultado esperado:
[1] 11
Pero si se omiten los paréntesis se llega a un error de interpretación:
destino de la asignación se expande a un objeto fuera del lenguaje
Espero que sirva
Jorge
El 26/2/14, daniel
2010 Apr 18
7
OT: Los “mejores” paquetes de R
Hola, ¿qué tal?
Envío un mensaje que está ligeramente fuera de los objetivos de la lista
y, en particular, de esta lista, pero que puede resultar de interés. Y
es que a raíz de la lectura de un artículo de SAS sobre el análisis de
marcas en redes sociales he emprendido un estudio análogo sobre cuáles
son los "mejores" paquetes de R.
"Mejor" lo defino como "más
2020 Jun 12
0
How to change SIP header TO: ?
Hello friends.
I have a softswitch in which I cannot create a list of blocked source
numbers; So, I have thought to use Asterisk and return a 302 message
when the number can make the call, my dialplan is as follows:
[from-external]
exten => _AX.,1,Verbose(=======> ${CALLERID(num)} to ${EXTEN})
same => n,Set(MYDESTINY=${REPLACE(${EXTEN},A,)})
same =>
2004 Dec 09
3
test multiple objects for being equal length
I could not find any help pages on How to test many
objects for being of equal length
Something like identical for more than two objects?
x<-1:6
y<-1:10
z<-3:5
## For two objects I can do:
identical(length(x),length(y))
## For more than two I currently can do:
length(unique(c(length(x),length(y),length(z))))==1
but there must be a better way.
Thanks,
M
2009 Apr 15
2
nls factor
I want to fit the model y=a*x^b using nls; where "a" should be different for
each level of a factor.
What is the easiest way to fit it? Can i do it with nls?
I've looked the help pages and the MASS example in page 249 but the formula
is different and I don't know how to specify it for my model.
Thanks,
Manuel
[[alternative HTML version deleted]]
2023 Jun 12
3
[Bug 3578] New: RFE: forward error correction
https://bugzilla.mindrot.org/show_bug.cgi?id=3578
Bug ID: 3578
Summary: RFE: forward error correction
Product: Portable OpenSSH
Version: 9.3p1
Hardware: Other
OS: Linux
Status: NEW
Severity: enhancement
Priority: P5
Component: ssh
Assignee: unassigned-bugs at mindrot.org
2006 Apr 20
2
nls and factor
Is it possible to include a factor in an nls formula?
I've searched the help pages without any luck so I
guess it is not feasible.
I've given it a few attempts without luck getting the
message:
+ not meaningful for factors in:
Ops.factor(independ^EE, a)
This is a toy example, my realworld case is much more
complicated (and can not be solved linearizing an
using lm)
2008 Aug 20
0
unlist on nested lists of factors (PR#12572)
Here is a description and a proposed solution for a bug in unlist().
I've used version 2.7.2 RC (2008-08-18 r46382) to look at this, under
linux.
unlist(recursive=TRUE) incorrectly returns a factor with zero levels
when passed either a nested list of factors, or a data frame
containing only factor columns. You can't print() the result.
x <- list(list(v=factor("a")))
2008 Oct 24
1
unlist change the ordered type
Hi the list,
unlist respect the all the atomic type except orderd (it change of
ordered into factor) :
### integer
class(unlist(list(1:5,1:3)))
#[1] "integer"
### numeric
class(unlist(list(1.2,3.5)))
#[1] "numeric"
### character
class(unlist(list("e","e")))
#[1] "character"
### factor