Às 00:22 de 25/10/2023, Sorkin, John escreveu:
Colleagues,
I have written an R function (see fully annotated code below), with which I
want to process a dataframe within levels of the variable StepType. My program
works, it processes the data within levels of StepType, but the usual headers
t
Dear John,
Printing inside the function is problematic. Your function itself does
NOT print the labels.
Just as a clarification:
F = factor(rep(1:2, 2))
by(data.frame(V = 1:4, F = F), F, function(x) { print(x); return(NULL); } )
# V F
# 1 1 1
# 3 3 1
# V F
# 2 2 2
# 4 4 2
# F: 1 <- this i
Colleagues,
I have written an R function (see fully annotated code below), with which I
want to process a dataframe within levels of the variable StepType. My program
works, it processes the data within levels of StepType, but the usual headers
that separate the output by levels of StepType are
3 matches
Mail list logo