Jump to content

Help with R

No, there is no error in the title. The language is called R.

 

So... We are currently using a language called R at one of my courses in college. We were given 

the task to calculate the contingency coefficient of two lists with the following command

 

vcd::assocstats(table(x, y))

 

The problem is that when I try to execute that command I always get the following error and I don't

have a clue what it means.

 

> vcd::assocstats(table(list1, list2))
Error in sort.list(y) : 'x' must be atomic for 'sort.list'
Have you called 'sort' on a list?

I thought that atomic variables are for multi-threaded applications, but I don't use multiple threads (I don't think that R can even do that...).

Or does the word atomic mean something different in R?

 

Best regards,

Rising Warrior

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×