Displaying 4 results from an estimated 4 matches for "cotau".
2010 Jan 21
2
loop on list levels and names
...some functions, I have to transform my dataset into a list, where
each element contains one group, and I have to prepare a list for each
variable I have (altogether I have 15 variables, and many entries per
factor level)
Here is some part of my dataset:
SPECSHOR BONE Asfc Smc epLsar
cotau tx 454.390369 29.261638 0.001136
cotau tx 117.445711 4.291884 0.00056
cotau tx 381.024682 15.313017 0.002324
cotau tx 159.081789 18.134533 0.000462
cotau tm 160.641503 6.411332 0.000571
cotau tm 79.238023 3.828254 0.001182
cota...
2010 Jan 22
2
column selection in list
Hi everybody!
I have a (stupid) question but I cannot find a way to do it!
I have a list like:
> SPECSHOR_tx_Asfc
$cotau
SPECSHOR Asfc.median
38 cotau 381.0247
39 cotau 154.6280
40 cotau 303.3219
41 cotau 351.2933
42 cotau 156.5327
$eqgre
SPECSHOR Asfc.median
145 eqgre 219.5389
146 eqgre 162.5926
147 eqgre 146.3726
148 eqgre 127.6413
149 eqgre 274.2...
2010 Sep 21
2
labels in (box)plot
...ar users,
I would like all the ticks on a boxplot (x and y) to be labeled
I have checked all the par() arguments but couldn't find what I'm
looking for
Here is an example to show it:
df <- structure(list(SPECSHOR = structure(c(1L, 1L, 1L, 3L, 3L, 3L, 3L,
3L, 4L, 4L), .Label = c("cotau", "dibic", "eqgre", "gicam"), class =
"factor"), Sq122.median = c(2.335835, 1.76091, 1.64717, 1.285505,
1.572405, 1.86761, 1.82541, 1.62458, 0.157813, 0.864523)), .Names =
c("SPECSHOR", "Sq122.median"), class = "data.frame&quo...
2010 Jan 29
1
create an R object in a loop
...well.
But I would like to do it in a loop for each numerical variable. It
would be easier!
For now, I have the loop with the extraction and storage into a list.
The code is below.
-----
# Defines variables
file <- ssfamed #data file object to be used
spec <- "cotau" #species selection
bone <- "tx" #tooth row selection
cat <- 3 #column indexe to be used as
categorical variable
seq.num <- c(seq(7,21,1)) #column indexes to be used as numerical...