Dear people,

Yesterday I looked at the recode command in the memisc package and ran the
following example stated in the manual:

x <- as.item(sample(1:6,20,replace=TRUE),
             labels=c( a=1,
                       b=2,
                       c=3,
                       d=4,
                       e=5,
                       f=6))

print(x)
f <- as.factor(x)
f
recode(f,
  "A"=c("a","b"),
  "B"=c("c","d"),otherwise="copy"
  )

I also used this command for my dataset and it work - I didn't get an error
message.

Today I have tried several times running this example, also with my
dataset, and always got the same error message (in German):

Fehler in recode(f, A = c("a", "b"), B = c("c", "d"), otherwise = "copy") :
  unbenutzte(s) Argument(e) (A = c("a", "b"), B = c("c", "d"), otherwise =
"copy")

(Error in recode ...
  unused argument(s) ...)

I also couldn't find anything in the internet. I don't understand why this
is not working anymore. Does anyone know what the problem is?

Thank you very much for your help in advance!

Marion

        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to