Displaying 5 results from an estimated 5 matches for "specshor".
2010 Jan 21
2
loop on list levels and names
Hi everybody!
To use 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...
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...
2010 Sep 21
2
labels in (box)plot
Dear 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 =...
2010 Jan 18
2
column selection for aggregate()
Hi everybody!
I'm working on R today so I have a lot of questions (you may have
noticed that it's the 3rd email today). I'm new on R, so please excuse
the "spam"!
I have a dataset "ssfa" with many rows and the column names are:
> names(ssfa)
[1] "SPECSHOR" "BONE" "TO_POS" "MEASUREM" "FACETTE" "SHEARFAC"
[7] "ENA_BA" "SEL_FACET" "SEL_MEAS" "Asfc" "Smc" "epLsar"
[13] "HAsfc4" "HAsfc9"...
2010 Jan 29
1
create an R object in a loop
...#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
variables
# Select data for species and tooth row
select <- file[file$SPECSHOR==spec & file$BONE==bone, ]
#Separate the data from each numeric variable in seq.num (select[,k])
into groups from levels in select[cat] and store into list mode.
for(i in 1:length(seq.num)) {
k <- seq.num[i]
name.num <- names(file)[k]
TO_POS_Asfc.median_cotautx <- fac2list(sele...