Displaying 20 results from an estimated 1000 matches similar to: "Emacs and R"
2004 Jul 27
1
list problem
Hi all,
I have the folowing frame(there are more columns than shown),
1 2 3 4 5
Year Total Tus Whi Norw
1994 1.00 1830 0 355
1995 1.00 0 0 0
1995 1.00 0 0 0
1995 1.00 4910 4280 695
1997 1.00 0 0
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
2004 Jun 17
3
How to order a vector
Hi all
I have a vector like this
2003 2002 2001 2000 1999 1998 1997 1996
106 105 106 106 105 106 101 107
How can I get it sorted right(1996....2003)?
Thank you
Luis Ridao Cruz
Fiskiranns??knarstovan
N??at??n 1
P.O. Box 3051
FR-110 T??rshavn
Faroe Islands
Phone: +298 353900
Phone(direct): +298 353912
Mobile: +298 580800
Fax: +298 353901
2004 Aug 06
2
list of frames without first element
R-help,
I have a list of several data frames.
I want to compute the "rowSums" of the columns of these data frames but first one.
Something like this
lapply(my.list,rowSums)
Thank you
Luis Ridao Cruz
Fiskiranns??knarstovan
N??at??n 1
P.O. Box 3051
FR-110 T??rshavn
Faroe Islands
Phone: +298 353900
Phone(direct): +298 353912
Mobile: +298
2009 Aug 04
0
RODBC package to connect to Oracle database Linux
R-help,
I get the following error message when trying to connect to an Oracle
database
through R (2.8.1) under Linux (Ubuntu 9.04).
> channel<-odbcConnect("magnus",uid="luisr",pwd="juanayzakarias")
Warning messages:
1: In odbcDriverConnect(st, ...) :
[RODBC] ERROR: state IM002, code 0, message
[unixODBC][DriverManager]Data source name not found, and no
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
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
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
2004 Aug 16
3
adding sem to a plot
R-help,
I have a barplot and I wish to add standard erros (or deviations) bars to it.
How?
Thank you
Luis Ridao Cruz
Fiskiranns??knarstovan
N??at??n 1
P.O. Box 3051
FR-110 T??rshavn
Faroe Islands
Phone: +298 353900
Phone(direct): +298 353912
Mobile: +298 580800
Fax: +298 353901
E-mail: luisr at frs.fo
Web: www.frs.fo
2007 Aug 07
2
R and excell differences in calculation F distributionfunction
R-help,
I'm trying to work out the density function by doing:
> df(5.22245, 3, 22)
[1] 0.005896862
> df(15.20675, 6, 4)
[1] 0.001223825
In excell the result is :
0.0071060464 <*> FDIST(5.22245,3,22)
0.0100001406 <--> FDIST(15.20675,6,4)
>From my point of view the differences in the second case
are substantial.
Can anyone give me a hint on this?
Thanks in
2004 Apr 20
1
R1.9.0
I have just installed R 1.9.0 on my computer(Windows XP) and uninstalled 1.8.1
When Itry to execute .RData I'm asked to specify the program to open it.But whe I do it I get a message ".RData is not a valid Win32 program"
Can anyone help please?
Luis Ridao Cruz
Fiskiranns??knarstovan
N??at??n 1
P.O. Box 3051
FR-110 T??rshavn
Faroe Islands
Phone: +298 353900
2004 Jul 20
1
Problem with plot
Hi all
I'm trying to plot 2 columns of a frame but whatever option I choose for argument "type" I always get bars with height equal to 1.
I quit and restart but problem remais
Help!
Luis Ridao Cruz
Fiskiranns??knarstovan
N??at??n 1
P.O. Box 3051
FR-110 T??rshavn
Faroe Islands
Phone: +298 353900
Phone(direct): +298 353912
Mobile: +298 580800
Fax:
2004 Aug 11
2
type III sum of squares
R-help
What are the strengths and weakness of 'aov' in 'car' package?
My model looks something like this :
library(car)
aov(lm(fish.length~zone*area,data=my.data))
Thank you
Luis Ridao Cruz
Fiskiranns??knarstovan
N??at??n 1
P.O. Box 3051
FR-110 T??rshavn
Faroe Islands
Phone: +298 353900
Phone(direct): +298 353912
Mobile: +298 580800
Fax:
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,
2004 Aug 17
2
levels of factor
R-help,
I have a data frame wich I subset like :
a <- subset(df,df$"column2" %in% c("factor1","factor2") & df$"column2"==1)
But when I type levels(a$"column2") I still get the same levels as in df (my original data frame)
Why is that?
Is it right?
Luis
Luis Ridao Cruz
Fiskiranns??knarstovan
N??at??n 1
P.O. Box 3051
FR-110 T??rshavn
2004 Jul 23
2
retrieve rows from frame assuming criterion
Hi all,
I have a data frame in which one column(PUNTAR) is of character type.
What I want is to retrieve is the frame but only with those rows matching elements of PUNTAR with a list characters (e.g c("IX49","IX48") )
Year TUR STODNR PUNTAR
1994 9412 94020061 IX49
1994 9412 94020062 IX48
1994 9412 94020063 X32
1994 9412 94020065 X23
1994 9412
2004 Aug 13
2
lapply problem
R-help,
I wish to replace NULL elements(or missing) in the following list :
> z2
$cod
mean sd
62.56190 12.65452
$haddock
mean sd
36.61490 11.50365
$ling
mean sd
86.17949 20.43587
$saithe
mean sd
50.275847 5.453606
$whiting
NULL
$"norway pout"
mean sd
13.739623 1.393104
$"great silver smelt"
mean
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,
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