Displaying 6 results from an estimated 6 matches for "tmplist".
Did you mean:
tmp_list
2011 Dec 12
4
Improve a browse through list items - Transform a loop to apply-able function.
Un texte encapsul? et encod? dans un jeu de caract?res inconnu a ?t? nettoy?...
Nom : non disponible
URL : <https://stat.ethz.ch/pipermail/r-help/attachments/20111212/5611c696/attachment.pl>
2005 May 24
1
Contingency tables from data.frames
...--
er.table.df.br <- function(df,
breaks = c('Sturges', 'Scott', 'FD'),
right = FALSE) {
if (is.data.frame(df) != 'TRUE')
stop('need "data.frame" data')
dim_df <- dim(df)
tmpList <- list()
for (i in 1:dim_df[2]) {
x <- as.matrix(df[ ,i])
x <- na.omit(x)
k <- switch(breaks[1],
'Sturges' = nclass.Sturges(x),
'Scott' = nclass.scott(x),
'FD' = nclass.FD(x),...
2005 Jul 07
1
Tables: Invitation to make a collective package
...ata.frame
#
tb.table.data.frame <- function(df,
k,
by,
breaks=c('Sturges', 'Scott', 'FD'),
right=FALSE)
{
stopifnot(is.data.frame(df))
tmpList <- list()
nameF <- character()
nameY <- character()
# User didn't defines a factor
if (missing(by)) {
logCol <- sapply(df, is.numeric)
for (i in 1:ncol(df)) {
if (logCol[i]) {
x <- as.matrix(df[ ,i])
tbl <- tb.make...
2009 May 21
3
index to select rows of a large matrix
Dear R Users,
I have created a 1500 x 20000 data frame - DataSeq. Each of the 1500
rows represents a data sequence.
I have another data frame iData that stores the information of these
1500 data sequences in the same order, for example, condition, gender,
etc.
If I use "subset" to select certain groups within iData according to
some criteria that I have set, e.g. condition, gender
Then
2009 Feb 19
2
read.table : how to condition on error while opening file?
Hi,
I'm using read.table in a loop, to read in multiple files. The problem
is that when a file is missing there is an error message and the loop is
broken; what I'd like to do is to test for the error and simply do
"next" instead of breaking the loop. Anybody knows how to do that?
Example:
filelist <- c("file1.txt", "file2.txt",
2007 May 17
1
[PATCH] ocfs: use list_for_each_entry where benefical
...switch (ndata->state) {
@@ -774,16 +768,14 @@ static int dlm_init_recovery_area(struct
static void dlm_destroy_recovery_area(struct dlm_ctxt *dlm, u8 dead_node)
{
- struct list_head *iter, *iter2;
- struct dlm_reco_node_data *ndata;
+ struct dlm_reco_node_data *ndata, *next;
LIST_HEAD(tmplist);
spin_lock(&dlm_reco_state_lock);
list_splice_init(&dlm->reco.node_data, &tmplist);
spin_unlock(&dlm_reco_state_lock);
- list_for_each_safe(iter, iter2, &tmplist) {
- ndata = list_entry (iter, struct dlm_reco_node_data, list);
+ list_for_each_entry_safe(ndata, nex...