similar to: if dentro de for

Displaying 20 results from an estimated 100 matches similar to: "if dentro de for"

2013 Feb 15
10
reading data
Hi, #working directory data1 #changed name data to data1.? Added some files in each of sub directories a1, a2, etc. ?indx1<- indx[indx!=""] lapply(indx1,function(x) list.files(x)) #[[1]] #[1] "a1.txt"??????? "mmmmm11kk.txt" #[[2]] #[1] "a2.txt"??????? "mmmmm11kk.txt" #[[3]] #[1] "a3.txt"??????? "mmmmm11kk.txt" #[[4]] #[1]
2019 Apr 16
3
PROBLEMAS NOMBRES DE COLUMNAS CON ESPACIOS CONEXION R-SQL
Buenas tardes, Estoy tratando de realizar un update en SQL desde R: sqlUpdate(conexion1, data.frame(AUXILIAR), tablename = "AUXILIAR") y me devuelve el siguiente error: *Error in sqlUpdate(conexion1, data.frame(AUXILIAR), tablename = "AUXILIAR", : * * data frame column(s) Corteoptimo Cortediario not in database table* El problema es que sí existen esas columnas en SQL pero
2012 Aug 20
1
Doubt in relation with packaging
Hi, As I told you some days ago, finally I could build the package, but I have one doubt: my source code has a lot of functions, but the users only need some of them (the others are auxiliar functions), so there must be a way in order to make invisibel the auxiliar functions. I think I can do it adjusting NAMESPACES file (I don't known how to do it yet) but the question is the following:
2013 Nov 30
2
Ayuda con manipulación de datos de un data.frame
Hola a todos, Soy nueva en R (y además tengo conocimientos de programación prácticamente nulos) y necesito ayuda. Tengo un data.frame con varias columnas de datos meteorológicos y una columna de fecha. También he creado unas columnas con dia, hora y minuto. Los comandos hasta ese momento son esos (lo siento, no sé si hace falta ponerlos o no)
2008 Oct 16
4
How to save/load RWeka models into/from a file?
Hi, I want to save a RWeka model into a file, in order to retrive it latter with a load function. See this example: library(RWeka) NB <- make_Weka_classifier("weka/classifiers/bayes/NaiveBayes") model<-NB(formula,data=data,...) # does not run but you get the idea save(model,file="model.dat") # simple save R command # ... load("model.dat") # load the model
2005 Apr 26
2
writing a data frame in excel format
Hello I know how read a file in excel format into a R data frame using the RODBC library, but I don't know how write a R data frame in excel format. I don't understand the instructions from RODBC user manual. To read an excel file I use. library(RODBC); conex<-odbcConnectExcel("fis_quim.xls"); sqlTables(conex); data<-sqlFetch(conex,"hoja1"); Suppose I
2017 Jan 09
4
Asignar número de semana
Hola a todos. Estoy tratando de asignar el número de semana del año a una serie de fechas y me encuentro con que el paquete lubridate considera como día de inicio de la semana el domingo en lugar del lunes. Lo que se me ha ocurrido es crear una tabla auxiliar de fechas con los campos: 'Fecha desde', 'Fecha hasta' y 'Semana ISO' tal que así: 'Fecha desde', 'Fecha
2007 Jan 05
1
help for memory problem with 64-bit machines
Hello, I would appreciate *any* ideas on this problem. I'm the maintainer of a package ("subselect"), which on CRAN's Daily Package Checks is OK on all flavours of R, except r-devel Linux x86_64, where there is a "memory not mapped" segfault with the very first example that is tried out (output below). Additionally, a user with an AMD64 machine has just reported a
2016 Mar 04
7
[Bug 2548] New: Make pam_set_data/pam_get_data work with OpenSSH
https://bugzilla.mindrot.org/show_bug.cgi?id=2548 Bug ID: 2548 Summary: Make pam_set_data/pam_get_data work with OpenSSH Product: Portable OpenSSH Version: 7.2p1 Hardware: Sparc OS: Solaris Status: NEW Severity: major Priority: P5 Component: PAM support Assignee:
2015 Apr 24
2
Diferencias entre la version de 32 y 64 bits
Buenos días, He hecho un desarrollo en mi máquina (de 64 bits) y funciona correctamente. Se trata de un problema de programación lineal (usando lpSolve y lpSolveAPI). El problema viene al ejecutar un caso concreto que en la máquina del usuario (de 32 bits) nos da que no hay solución factible para ese problema, pero en mi máquina de 64 sí que nos devuelve una solución. ¿Hay alguna forma (limitar
2008 Jul 28
1
RStem with portuguese language
Greetings, I have R 2.7.1 in MacOs and I believe UTF encoding is already installed. At least: > Sys.getenv() shows several variables, including: LANG "pt_PT.UTF-8" I installed the Rstem and tm packages and when I try the following code: > wordStem(c("aberra??o","aberra??es"), language="portuguese") [1] "aberra?\xc3"
2013 Apr 07
5
Duda con width y height. Resolución de pantalla
Buenas tardes: Por favor, ¿alguien me puede explicar este comportamiento?. Lanzo este código enun equipo con una pantalla de 21'''' y el resultado es correcto, tanto en la ventana gráfica como al guardar en pdf: quartz(title="Ventada de prueba", width=8.27, height=11.69, dpi=85) plot(1:10) Sin embargo, lanzado en un equipo con pantalla de 15'''', la
2015 Mar 24
3
NetCDF
Buenas tardes, pido disculpas si mi consulta es demasiado elemental, pero actualmente encuentro una gran barrera para continuar mi trabajo si no lo solvento. Soy usuaria principiante de R, estoy trabajando con una base de datos climática <https://digital.csic.es/handle/10261/104742>que se encuentra en formato netcdf4 y necesito transformarla a la versión 3 con el fin de visualizarlo en un
2009 Jun 25
1
lm
Hi all, I want to make multiple least squares estimation on two matrix (without intercept) imagine matrix "a" and matrix "b", I want to "regress" each colum on matrix "a" (dependent variable) on each column of matrix b, I mean, regress first colum on a to first column on b. Second column on a to second column on b. Imagine "a" and "b"
2006 Feb 21
29
script/console
The agile book says "You can inspect variables, set values, add other breakpoints, and generally have a good time". This is very sweet and totally useless. For example, I want to see the session variable, the cookies variable and so on. These names are unknown. I think I guess that the things that are available depend on where you put the breakpoint() call. I''ve tried a
2009 Jul 04
1
De que otra forma se puede hacer
Hola que tal alguien de ustedes me podría auxiliar, lo que pasa es que estoy tratando de hacer un programa en R utilizando la siguiente tabla: x<1 km x>1km Estabilidad a c d f c d f A 213 440.8 1.94 9.27 459.70 2.094 -9.6 B 156 106.6 1.15 3.30 108.20 1.098 2.0 C 104 61.0 0.91 0.00 61.00 0.911 0.0 D 68 33.2 0.73 -1.70 44.50 0.516 -13.0 E 51 22.8 0.68 -1.30 55.40 0.305
2008 Oct 01
3
Installing RWeka package in CentOS 5: problems with JAVA?
Hi, I am a R user, with some experience in MacOS, Linux, etc, but I am having a problem that I cannot solve: I have a linux server (CentOS 5) and I installed sun jdk1.6. For instance: $ java -version Java version "1.6.0_10-rc2" Java(TM) SE Runtime Environment (build 1.6.0_10-rc2-b32) Java HotSpot(TM) Server VM (build 11.0-b15, mixed mode) I also installed the latest version of R:
2016 Jun 22
3
Shiny
Estoy trabajando generando mapas a partir de un conjunto de datos. No puedo encontrar la forma de manipular el tamaño de los mapas. He buscado en páginas de Shiny y no pude encontrar una solución ¿Alguien me puede orientar? No he puesto una imagen para no recargar el servidor de correo. Saludos y gracias -- Eduardo [[alternative HTML version deleted]]
2018 Jun 07
2
[RFC] Abstract Parallel IR Optimizations
This is an RFC to add analyses and transformation passes into LLVM to optimize programs based on an abstract notion of a parallel region. == this is _not_ a proposal to add a new encoding of parallelism == We currently perform poorly when it comes to optimizations for parallel codes. In fact, parallelizing your loops might actually prevent various optimizations that would have been applied
2013 Dec 01
0
Ayuda con manipulación de datos de un data.frame
Hola Carolina, ¿Podrías adjuntar el conjunto de datos?. Como dices que tampoco llevas mucho tiempo con R, dejo de lado por ahora el decirte que utilices una librería que te hace estas cosas de forma automática, la librería se llama Openair, por si quieres mientras tanto ir echándole un vistazo. Saludos, Carlos Ortega www.qualityexcellence.es El 30 de noviembre de 2013 12:06, Carolina Pelegrín