similar to: Introduce a new function in a package?

Displaying 20 results from an estimated 30000 matches similar to: "Introduce a new function in a package?"

2009 May 26
2
R under Ubuntu
R-help, I have installed R under Ubuntu and I'm very new to a Linux distribution. To open an empty R session I just type R on the Terminal aplication. But how can I open a saved workspace? At present I just start R and then load ("my_workspace") but it must be possible to do it all at once,,,,right? Thanks in advance
2005 Mar 21
3
Remove "save workspace image?" window when exit R
R-help, I wish to remove the message at the end of a session "save workspace image?" . By googling I found no answer . Thanks in advance I run on Windows XP > version _ platform i386-pc-mingw32 arch i386 os mingw32 system i386, mingw32 status major 2 minor 0.1 year 2004
2013 Feb 01
1
Expresiones regulares
Hola a todos, Estoy intentando buscar en el workspace objetos con un determinado patrón: > ls(pattern=(''res_UP_'')) [1] "res_UP_may_aug_16_17_18" "res_UP_sep_dec_16_17_18" pero mi intención es la de encontrar objetos que solo contengan el siguiente: res_UP_"cualquiera_sequencia_texto_"16_17_18 He intentado lo siguiente pero no funciona: >
2014 Jan 31
2
manipulación de caracteres
lo que necesito es "98989","121212" y no : paste(unlist(strsplit(char,",")),collapse=",") [1] "98989,121212" Luis -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- Luis Ridao Cruz Faroe Marine Research Institute Nóatún 1, P.O. Box 3051 FO-110 Tórshavn Faroe Islands Tel : (+298) 353900 Fax: : (+298) 353901 e-mail: luisr@hav.fo
2005 Mar 08
5
removing message: [Previously saved workspace restored]
Dear All, I saved by mistake the environment I was working in after typing q(), and now I get the annoying message: [Previously saved workspace restored] I have already deleted all the objects in the environment, saving it as an empty environment, so it's just a matter of nitpicking I suppose. The message does not appear if I start R from any other place in the directory tree. I am
2010 Sep 08
3
Saving/loading custom R scripts
Hi, How does R automatically load functions so that they are available from the workspace? Is it anything like Matlab - you just specify a directory path and it finds it? The reason I ask is because I found a really nice script that I would like to use on a regular basis, and it would be nice not to have to 'copy and paste' it into R on every startup:
2014 Jan 31
2
manipulación de caracteres
esto me convierte la cadena de caracteres en dos y eso no es lo que quiero además el resultado final de la cadena debe ser: "98989","121212" Luis -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- Luis Ridao Cruz Faroe Marine Research Institute Nóatún 1, P.O. Box 3051 FO-110 Tórshavn Faroe Islands Tel : (+298) 353900 Fax: : (+298) 353901 e-mail: luisr@hav.fo
2014 Feb 11
2
eliminar texto de un fichero
Carlos, eso sería una buena solución. el problema es que utilizo el sink() para redireccionar no solo uno sino varios datos en forma matricial y de lista Luis -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- Luis Ridao Cruz Faroe Marine Research Institute Nóatún 1, P.O. Box 3051 FO-110 Tórshavn Faroe Islands Tel : (+298) 353900 Fax: : (+298) 353901 e-mail: luisr@hav.fo
2005 Nov 10
6
paste argument of a function as a file name
R-help, I have a function which is exporting the output to a file via write.table(df, file = "file name.xls" ) What I want is to paste the file name (above) by taking the argument to the function as a file name something like this: MY.function<- function(df) { ... ... write.table(df,"argument.xls") } MY.function(argument) Thank you
2014 Apr 01
2
problema con RStudio
Pues ahí lo tienes. De alguna manera R (a través de RStudio) no está incorporando el directorio /u01/app/luisr/product/11.1.0/client_1/lib donde se ve que tienes las librerías de ODBC al "LD path". Échale un vistazo a https://support.rstudio.com/hc/communities/public/questions/200641818-How-to-configure-libPaths-?locale=en-us Aparentemente RStudio tiene su propio sistema para
2014 Apr 01
2
problema con RStudio
Hola, ¿qué tal? ¿Puedes comparar la salida del comando Sys.getenv("LD_LIBRARY_PATH") en una sesión en la que funciona RODBC y otra en la que obtienes el error anterior? Un saludo, Carlos J. Gil Bellosta http://www.datanalytics.com P.D.: A propósito, también he estado tratando de utilizar RODBC en Linux y me he acabado rindiendo. Sobre todo porque RJDBC funciona bastante bien.
2014 Feb 11
2
eliminar texto de un fichero
No estoy seguro si esto sirve, ya que no enviaste un ejemplo reproducible. source("mifuncion.R", echo=TRUE, max.deparse.length=10000) Daniel Merino El 11 de febrero de 2014, 12:48, Carlos Ortega <cof@qualityexcellence.es>escribió: > Hola, > > Sí, pero recuerda que "write()" permite añadir otros nuevos objetos a un > fichero ya existente... > Vaya,
2005 Mar 01
6
lattice -- panel order display
R-help, I'm using 'xyplot' in lattice package which plots length frecuencies by year (10). The order I get is not logical and the 'index.cond' argument to 'xyplot' is a bit cumbersome when it comes to plot a great deal of (in my case years). I have tried sorting the conditioning variable but still get the same result. Is there any easy way to do it without making use
2005 Jan 11
4
thanks
Dear all, Thanks to those 3 people who sent me answers to my question. Got the problem solved. Great! Now, another question of mine is: I would like to run an R script from the Linux prompt. Is there any way possible to do this? The reason is, the calculation that I'm doing takes a few hours, and I would like to automatize it. Or does it mean that I have to run source within the R
2014 Feb 11
2
eliminar texto de un fichero
Daniel, eso funciona en la terminal pero mi argumento to regex o grep es un fichero ahi es donde me encuentro atascado Luis -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- Luis Ridao Cruz Faroe Marine Research Institute Nóatún 1, P.O. Box 3051 FO-110 Tórshavn Faroe Islands Tel : (+298) 353900 Fax: : (+298) 353901 e-mail: luisr@hav.fo luridao@gmail.com
2004 Jul 20
9
Sort a data frame
Hi all I have the next data frame year STOD SLAGNR TAL TALT TALVEKT 1 2002 2120006 57 1 NA 1 2 1997 97030032 57 NA NA NA 3 1997 97030071 27 1 NA NA 4 1997 97030005 57 1 NA NA 5 1997 97020127 60 NA 1 NA 6 2001 1160025 27 1 NA 1 7 1998 98020069 60 1 NA NA 8
2005 Feb 11
5
Double sort a data frame
R-help, Long ago I asked how to sort a data frame according to one of the columns. But Iwas wondering ho I could "double sort" , i.e, sort according to one column and another one afterwards. It is quite easy in Excel but I am unable to implemented in R. I have searched in the R help archives and found nothing. Thank you in advance.
2014 Apr 01
3
problema con RStudio
No, no estoy usando Rstudio Server El 1 de abril de 2014, 9:07, Carlos J. Gil Bellosta <cgb@datanalytics.com>escribió: > Una pregunta... no estarás utilizando RStudio server, ¿verdad? > > En tal caso, lo que tienes que hacer es configurar > /etc/rstudio/rstudio.conf tal como indica en > > http://www.rstudio.com/ide/docs/server/configuration > > En particular,
2006 Dec 20
5
writing R extension
I'd like to develop a simple library in R in which to save my particular functions. I have read the manual on "Writing R Extensions" but it's too difficult. Someone could help me? I want only save my personal function (recorded in R-code, not in C) in "myLibrary" and I want to call it with: >library (myLibrary). After this, the functions should be available
2013 Jan 31
2
evaluar una exprseion
Hola a todos, Me gustaria saber como puedo evaluar / obtener el resultado guardado en un objeto cuando este se ejecuta. Quiero decir, el resultado de la siguiente expresion: > paste("res_UP_sep_dec_","16_17_18",sep="") [1] "res_UP_sep_dec_16_17_18" es un objeto (una lista) cuyo nombre es precisamente res_UP_sep_dec_16_17_18 >