similar to: how to get column/row info from a dist object?

Displaying 20 results from an estimated 200 matches similar to: "how to get column/row info from a dist object?"

2019 Mar 20
3
Como asignar valores de un archivo a otro
Toda la razon!!! merge era todo! Saludos El mié., 20 mar. 2019 a las 10:57, Carlos Ortega (<cof en qualityexcellence.es>) escribió: > Hola Mauricio, > > No, creo que no es lo que dices.. > > Con merge, indicas por qué columna (pueden ser varias) quieres juntar los > dos dataframes y con los parámetros "all.x", "all.y" y "all" indicas si
2019 Mar 20
4
Como asignar valores de un archivo a otro
Hombre, lo que propones es un tanto drástico... Siguiendo tu línea de argumentación entonces, nos olvidamos de "data.table", "dplyr"...y llegado el caso de gran parte de lo que ofrece "R" en cuanto a la manipulación de los dataframes, puesto que son tareas que igualmente puedes resolver en una bbdd... "sqldf" ofrece funcionalidades muy interesantes, para
2019 Mar 20
2
Como asignar valores de un archivo a otro
merge sirve pero no para cumplir la condición de si un dato es "x", buscarlo en el otro data.frame y asignarlo El mié., 20 mar. 2019 a las 10:23, Carlos J. Gil Bellosta (< cgb en datanalytics.com>) escribió: > ?merge > > El mié., 20 mar. 2019 a las 14:22, MAURICIO MARDONES (< > mauricio.mardones en ifop.cl>) escribió: > >> Amigos erreros >>
2020 Feb 19
2
Problemas con tinytex (base Latex)
Aquí hay una posible solución... https://tex.stackexchange.com/questions/27138/how-can-i-fix-the-error-gui-framework-cannot-be-initialized-with-texniccenter El mié., 19 feb. 2020 a las 23:16, MAURICIO MARDONES (< mauricio.mardones en ifop.cl>) escribió: > Esto... > > 2020-02-19 18:29:50,307-0300 INFO pdflatex - starting with command line: >
2018 Aug 27
3
Media
Estimada lista la pregunta es muy básica, pero necesito saber la Long media para cada año. Estoy pillando en el bucle. > head(talla) X Long Año 1 1 56 2016 2 2 58 2016 3 3 58 2016 4 4 58 2016 5 5 58 2016 6 6 58 2016 > tail(talla) X Long Año 2567630 2567630 86 2000 2567631 2567631 88 2000 2567632 2567632 88 2000 2567633 2567633 88 2000
2020 Feb 19
2
Problemas con tinytex (base Latex)
Mira el error en este fichero que te indica: * C:~\AppData\Local\MiKTeX\2.9\miktex\log\pdflatex.log* Ahí vendrá en las últimas líneas el fallo que se ha producido. Y con el mensaje de error específico busca si hay alguna referencia por ahí. Entiendo que estás instalando la última versión que ha salido hace pocos días... El mié., 19 feb. 2020 a las 22:36, MAURICIO MARDONES (<
2019 Mar 20
3
Como asignar valores de un archivo a otro
Amigos erreros Pocas veces consulto, por que siento que soy muy básico, pero esta vez quise socializar a pesar de ello. Tengo 2 archivos .csv pero quiero asignar valores de una columna a las mismas variables que se encuentran en el otro archivo. así; head(archivo_csv1) Long Año Proced 1 47 2016 9003 2 48 2016 9003 3 49 2016 9003 4 49 2016 9003 5 50 2016 9003 6 50 2016
2020 Feb 19
2
Problemas con tinytex (base Latex)
Estimado Mauricio Mardones Me llamo la atención su correo, desconocía lo que usted nombra, lo busque, pero hay una diferencia, instala textlive en un lugar del disco (.appdata), yo opino como Carlos Ortega. La documentación dice: # Windows tlmgr path remove rd /s /q "%APPDATA%\TinyTeX" Se instala en esa carpeta oculta. Saludos Javier Rubén Marcuzzi El mié., 19 feb. 2020 a las
2016 Apr 02
3
apply mean function to a subset of data
Dear all; This must have a rather simple answer but haven't been able to figure it out: I have a data frame with say 2 groups (group 1 & 2). I want to select from group 1 say "n" rows and calculate the mean; then select "m" rows from group 2 and calculate the mean as well. So far I've been using a for loop for doing it but when it comes to a large data set is
2017 Mar 22
3
R - Markdown
Estimados todos, quizas la pregunta es simple pero no puedo arreglarlo. Cuando trato de exportar mi archivo a PDf usando el R Markdown me arroja este error: pandoc.exe: pdflatex not found. pdflatex is needed for pdf output.Error: pandoc document conversion failed with error 41Además: Warning message:comando ejecutado '"C:/Program Files/RStudio/bin/pandoc/pandoc" +RTS -K512m -RTS
2020 Feb 19
2
Problemas con tinytex (base Latex)
Estimados erreros, Llevo dos días en un bucle pantanoso tratando de resolver mi tema y no puedo y les queria pedir ayuda. Hace una semana ya no puedo transformar archivos a pdf desde RMarkdown y he tenido que tratar de instalar "tinytex", que es la solución para los usuarios de R y pasar por alto el complejo MikTex ( https://yihui.org/tinytex/). Sin embargo, al tratar de instalar me
2007 Jun 14
4
question about formula for lm
Dear all; Is there any way to make this to work?: .x<-rnorm(50,10,3) .y<-.x+rnorm(50,0,1) X<-data.frame(.x,.y) colnames(X)<-c("Xvar","Yvar") Ytext<-"Yvar" lm(Ytext~Xvar,data=X) # doesn't run lm(Yvar~Xvar,data=X) # does run The main idea is to use Ytext as input in a function, so you just type "Yvar" and the model should fit....
2016 Apr 02
0
apply mean function to a subset of data
Hi Pedro, This may not be much of an improvement, but it was a challenge. selvec<-as.vector(matrix(c(nsel,unlist(by(toy$diam,toy$group,length))-nsel), ncol=2,byrow=TRUE)) TFvec<-rep(c(TRUE,FALSE),length.out=length(selvec)) toynsel<-rep(TFvec,selvec) by(toy[toynsel,]$diam,toy[toynsel,]$group,mean) Jim On 4/3/16, Pedro Mardones <mardones.p at gmail.com> wrote: > Dear all; >
2016 Apr 03
1
apply mean function to a subset of data
Here are several ways to get there, but your original loop is fine once it is corrected: > for (i in 1:2) smean[i] <- mean(toy$diam[toy$group==i][1:nsel[i]]) > smean [1] 0.271489 1.117015 Using sapply() to hide the loop: > smean <- sapply(1:2, function(x) mean((toy$diam[toy$group==x])[1:nsel[x]])) > smean [1] 0.271489 1.117015 Or use head() > smean <- sapply(1:2,
2016 Jul 20
4
un solo un favor
Hola a todos Esta es mi primera pregunta en el grupo, y es sencilla pero me tiene atascado. Estoy tratando de cortar mi mapa de (poner limites en UTM) en un lugar definido como mi area de estudio (en este caso el sur de chile). Pero creo no estar usando bien la función CRS ponendo bien los limites requeridos. > study_area <- readRDS("CHL_adm0.rds") > study_area_UTM <-
2011 Sep 20
5
help in interpreting paired t-test
Dear all; A very basic question. I have the following data: ************************************************************************************ A <- 1/1000*c(347,328,129,122,18,57,105,188,57,257,53,108,336,163, 62,112,334,249,45,244,211,175,174,26,375,346,153,32, 89,32,358,202,123,131,88,36,30,67,96,135,219,122, 89,117,86,169,179,54,48,40,54,568,664,277,91,290,
2018 Mar 13
2
stacked barplot
Hola A todos. He tratado de generar un STACKED BARPLOT EN R, esperando que sea tan sencillo como en Excel, la parecer no es tan sencillo... Alguien conoce una forma sencilla de hacerlo, considerando que son 5 variables por mes. [Descripción: FIRMA3] ________________________________ CONFIDENCIALIDAD: La información contenida en este mensaje y/o en los archivos adjuntos es de carácter
2009 Jan 18
2
don't print object attributes on screen
Dear all; I have a function written in R that returns as a list of values as output that has associated some user defined attributes to it. How can hide these attributes when printing the output on screen? I'm using R-2.8.1 on WinXP....it's like hiding the attr of the output from the scale function.... Thanks in advance PM
2006 Nov 29
3
R2.4 xyplot + panel.number problem
Hi all; I'm trying to display a 2 panel plot for the Puromycin data from R with 2 different non-linear models fitted to each group. The problem is that as far as I know panel.number doesn't work in the latest version of R. Can anyone give a hint how to solve this? Here is the code that I used before and now doesn't work xyplot(rate ~conc| state,Puromycin,
2009 Mar 14
4
persp plot + plotting grid lines
Dear all; Does anyone know how to add grid lines to a persp plot? I've tried using lines(trans3d..) but the lines of course are superimposed into the actual 3d surface and what I need is something like the plot shown in the following link: http://thermal.gg.utah.edu/tutorials/matlab/matlab_tutorial.html I'll appreciate any ideas Thanks PM