Displaying 20 results from an estimated 30000 matches similar to: "lattice -- panel order display"
2005 Feb 23
3
filling columns in frame according to another column frame
R-help,
I have a frame which I want to fill up conditioning to another data
frame column.
The one I want to fill up is as follows (basically an empty one):
> test2
cm 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2
3 3 3 3
2005 Apr 12
2
not plotting when non-existent
R-help,
I'm trying to plot the following:
year lgd
1 1986 136.97479
2 1987 69.10377
3 1988 67.66744
4 1989 71.60316
5 1990 62.06897
6 1992 6.25000
7 1993 27.72021
8 1995 23.83648
9 1996 10.29412
10 1997 95.67487
11 1998 82.09367
12 1999 56.60401
13 2000 29.80864
14 2001 23.77535
15 2002 48.30378
16 2003 83.47571
17 2004 74.58711
There are 2 missing years
2004 Jul 26
5
aggregate function
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
2004 Apr 22
3
fill up a matrix
Hi all,
I want to fill in this matrix vectors (by column) without overwriting the first elements in column 1995.
Is there any other way than concatenate the first element with the vector and then assign this new vector
to the column in matrix?
matrix[,"3"]<-c(1591,"vector")
matrix[,"4"]<-c(405,"vector")
...
...
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
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 Mar 16
1
Note: "The default device has been opened to honour attempt to modify trellis settings"
R-help,
I'm using a function whose end result is a trellis plot.
When I call the function I get sometimes the following message:
"Note: The default device has been opened to honour attempt to modify
trellis settings "
leading up to any plot whatsoever.
I call the package 'lattice' within the function and 'detach' after
plotting.
I have to close the graphics
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
2011 Oct 24
2
Syntax Help for xyplot()
Thanks to David's help I subset my large data set and produced a smaller
one for a single stream and 7 factors of interest. The structure of this
data frame is:
str(burns.tds.anal)
'data.frame': 718 obs. of 4 variables:
$ site : Factor w/ 143 levels "BC-0.5","BC-1",..: 1 1 4 6 4 4 4 5 5 5
$ sampdate: Date, format: "1996-06-02"
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
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
2009 Dec 08
2
could not find function lapply<-
R-help,
I have a list whose elements are data frames.
I want to change the colnames attribute in each element of this list but an error message
comes up:
> lapply(LD_strataNew,function(x) dimnames(x)[[2]][-1]) <- as.roman(1:9)[-6]
Error in lapply(LD_strataNew, function(x) dimnames(x)[[2]][-1]) <- as.roman(1:9)[-6] :
could not find function "lapply<-"
>
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,
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
2007 Mar 27
1
impose points on lattice plot
R-help,
I'm using the lattice package to plot 2 variables (vekt ~ aldur)
conditioned to a third (kyn * 2 categories).
I use the following:
xyplot(vekt ~ aldur|kyn, , data = sexSu)
I want to superimpose the average(vekt) by 'aldur'
conditioned to kyn by using something like:
xyplot(vekt~aldur|kyn, subset = aldur <= 12
, data = sexSu, panel = function(x, y)
{
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
2010 Oct 19
2
superpose.polygon, panel.polygon and their colors
Dear R-helpers,
the problem I'm facing today is to convince lattice to paint some areas
in gray.
The areas I would like to have in gray, are confidence bands
I've googled around in the mailing list archives and eventually find
some clues.
This link is my starting point
http://tolstoy.newcastle.edu.au/R/e2/help/07/04/15595.html
I'm reproducing here the code for your convenience
est
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