Skip to content
Prev 319530 / 398506 Next

saving vector output as numeric

Hi
Data frame is a list so as it can hold different class of objects together. as.numeric requires number or vector. Maybe you could change it by as.matrix.

However without some reproducible code (as required by posting guide) it is just a guess.

Please, try to show at least

str(your.object)

and preferably copy
dput(some.part.of.your.object)

to your post.
Regards

Petr