similar to: Duda con orden Cars93

Displaying 20 results from an estimated 300 matches similar to: "Duda con orden Cars93"

2009 Jul 31
1
help in using gsub and ?
Hi all, I would like to strip the R prompt from a series of code lines and copy the resulting text into a R script. For example, consider the following : ##### str1<-" > library(MASS) > data(Cars93) > attach(Cars93) > imosaic(data.frame(AirBags,Cylinders,Origin))" str2<-gsub('>','',str1) ###### This gives, as expected .? > str2 [1] "\n
2004 Feb 10
1
make check in 1.8.1.
I just (finally!!!) got R version 1.8.1 to configure and build under Solaris 9 (after much travail; there were funnies in my environment variables that mucked things up, but that's another story). Anyhow, when I ran ``make check'' I got an error right toward the end. Looking in the directory ``tests'' I found that the error was associated with the file reg-tests-3.R, and the
2001 Sep 08
2
Basic SPSS commands in R ?
Hello, i'm newbie of R and think it is a really good alternative to SPSS. But i have more problems using elementary things comparable with using advanced methods. (1) How can i value label i.e the variable X in data.frame DATA with the labels ( 1=very good ) (2=good). spss syntax when DATA is in Spreadsheet is: value labels X 1 'very good'. 2 'good'. execute. (2) How can i
2008 Nov 25
1
row labels in heatmap.2(package gplots)
Dear R users, I have a question regarding how to make row labels readable in a heat map. I have successfully made a heat map using function "heatmap.2" in the package "gplots". However, as there are many rows in the heat map, I have difficulties labeling them (heatmap.2 provides a parameter "labRow" to label the row names, but as I have too many rows, I can not make
2013 Jul 25
1
GGplot 2 – cannot get histogram and box plot axis to match.
Problem: I am trying to get the histogram and box plot x axis to match. I?ve tried using the expand_limits function to make the axis match but that didn?t make the axis match. The histogram?s axis are still consistently larger than the ones for the box plot (though the function did help). Does anyone have a suggestion as to what I should do instead? Background: I am building a Shiny app that
2000 Apr 26
2
plotting question
I would like to plot two different samples on the same scatterplot in R using different symbols for the different groups. Could someone please let me know how this can be done? Thank you very much. Thad ***************************************************************************** Thaddeus Tarpey Phone: (937) 775-2861 Wright State University
2018 Jan 15
4
sum multiple csv files
Hi, I am pretty new to R and I would apreciatte very much your help to solve my problem. I have 40 csv files that have the same structure, and I want to merge them into a single data frame. I already have load and combined all the cvs files into a large list, and I created two filenames <- list.files('data',full.names=TRUE) All_data <- lapply(filenames,function(i){ ###read cvs
2018 May 22
4
Pasar palabras de una lista a una variable del dataframe
Buenas tardes, Tengo una lista de 600 palabras. Quiero saber cuántas de esas palabras aparecen en cada observación de mi variable "texto". La variable "texto" es de tipo caracter. ¿Cómo lo haríais? Muchas gracias.
2018 May 23
2
Pasar palabras de una lista a una variable del dataframe
Muchas gracias Carlos, Me da error al hacerlo. Mi variable donde quiero que localice las palabras de la lista tiene más de una palabra, no se si puede ser por eso. Gracias El Mar, 22 de Mayo de 2018, 20:15, Carlos Ortega escribió: > Hola, > > Aquí tienes un ejemplo (reproducible)... > > #----------------------- >> # Generar nombres de mujer >> library(randNames)
2013 Nov 15
1
ggplot2: orden de una variable en el eje x según el valor de otra variable.
Buenas noches, A ver si alguien me puede echar una mano, porque estoy hecho un lió. El caso es que tengo una matriz de datos con tres variables, por ejemplo: S<-1:5 P1<- c(20, 18, 19, 15,16) P2<- c(4, 2, 6, 1,3) total<- data.frame(P1, P2, S) Ordeno la matriz según los valores en la variable "P1" total <- total[order(total[,1]),] Hasta aquí todo perfecto. El caso es
2008 Aug 26
2
awkward behavior with densityplot function
Hi, I have the following script: ---- t.R --- grafica <- function() { v <- read.csv('preprocessed/komolongma.ece.uprm.edu.active',sep=',') x <- as.ts(v$active) bitmap(file="output.png") densityplot(~x,col='blue',main='Density Plot') dev.off() } grafica() ---- t.R --- When I "sourced" it from R prompt, it quietly runs.
2015 Jun 09
5
librerias para programar una interfaz grafica en R ?
Estimados, he estado mirando en la internet si es posible programar con R una interfaz grafica para pedir el ingreso de datos por ejemplo, pero invariablemente obtengo paginas que hablan de interfaces graficas (rkward, rstudio, r-commander, etc) para R o de las librerias para hacer graficos (ggpolt, lattice, etc) ... alguien me puede orientar donde buscar o si estas existen ? Saludos y
2018 Jan 15
0
sum multiple csv files
Your message seems unclear, and as evidence the respondents are giving various answers. You should provide a small sample of input and output data as it would look in R to avoid this kind of thrashing about. See [1][2][3] for guidance. Note that you also really need to figure out how to make sure your email program sends plain text, because HTML formatting WILL be stripped by the mailing list
2009 Jun 25
1
interaction terms formula error
Hi, I'm trying to fit a binary logistic regression model, and would like to consider certain characteristics B and C only for people with variable A=1 and not for those with variable A=0, so I'm trying to do the following: model<- lrm(formula= y ~ A: (B+C) + D + E +...) I've had no problem with adding interaction terms using " * ", but every time I try to use
2018 Jan 12
1
setting constraints on gam
Thanks Simon, by cloning a smooth construct do you mean copying and modifying the smooth constructor code? Could you pleas elaborate on your answer? Which is the Predict.matrix method? 2018-01-12 3:20 GMT-06:00 Simon Wood <simon.wood at bath.edu>: > There probably is a way, but it involves some programming. You would need to > clone a smooth constructor (e.g. for the "cr"
2023 Feb 22
2
manejo bases de datos
Estimados He trabajado en R, pero los cambios a las bases de datos los he hecho en Excel. Quisiera saber como se puede desde el propio R: 1. Anadir Mas casos (filas) 2. Calcular una nueva variable, ejemplo el IMC a partir del peso y la estatura 3. Agrupar edades en grupos (0-10, 11-20 etc.) 4. Ordenar casos (descendente o ascendente) Saludos José
2012 Mar 28
4
Grafico en 3D
Buenas tardes, Podria por favor alguien ayudarme a descifrar por que no es posible ver la grafica 3D cuando se utiliza lattice? Ya se que algunas veces los duendes hacen de las suyas, pero no estoy seguro de que este sea el caso. He reiniciado R, cambiado a RStudio y utilizado XP, pero no pasa "nada". Mi sessionInfo() es: R version 2.14.0 Patched (2011-11-12 r57642) Platform:
2012 Feb 15
3
(sin asunto)
Hola Alguien me podría decir como hacer una grafica del tipo persp() de la densidad de una distribucion normal bivariante estandarzada con correlacion 0.5?? gracias [[alternative HTML version deleted]]
2000 Jun 13
1
problem with aperm? (PR#568)
R version 1.0.1 OS RedHat Linux 6.1 In attempting to test for numeric vectors in a data frame, I tried: apply(dataframe,2,is.numeric) and found that it returned FALSE for all vectors whether they were numeric or not. I tracked this to the fact that as.array() was converting the data frame to character vectors, and thought I could solve it by using array(), which preserved the mode of the
2015 Jun 10
2
librerias para programar una interfaz grafica en R ?
Muchas gracias a todos, estoy revisando las opciones que me dieron, Un abrazo, eric. On 10/06/15 02:29, miguel.angel.rodriguez.muinos en sergas.es wrote: > Hola Eric. > > Te recomiendo que le eches un ojo a gWidgets2: > http://cran.r-project.org/web/packages/gWidgets2/index.html > > Un Saludo. > > > El 09/06/2015 a las 22:07, eric escribió: >> Estimados, he