CrossTable function is not working

Dear all,

I'm trying to do Crosstable two variables in my data but getting an Error message could not find function "CrossTable".
please see charachteristics of my data and a code I'm using below.
It was working fine yesterday....
thank you,
Eteri

library(tidyverse)
library(dplyr)
library(tidyr)
str(Clindata_Female)
'data.frame': 353 obs. of 34 variables:
number : int 11007 11036 11038 11069 11074 11082 11085 11119 11125 11126 ... cgender : Factor w/ 2 levels "FEMALE","MALE": 1 1 1 1 1 1 1 1 1 1 ...
age16 : num 15.6 15.6 15.4 15.5 15.7 ... oldsib8.x : int 1 1 1 1 1 0 1 0 0 0 ...
matsmok0 : int 1 0 0 0 0 0 0 0 NA 0 ... patasth : int 0 1 0 0 1 1 0 0 0 0 ...
DeliveryType : int 0 1 1 1 1 1 1 1 0 0 ... cweight : num 2.49 2.08 3.63 3.43 3.01 3.2 3.32 3.63 4.08 3.23 ...
$ cytokine : int 0 0 0 0 1 0 0 1 0 0 ...

CrossTable(Clindata_Female$matsmok0, Clindata_Female$cytokine, prop.r=FALSE,
prop.t=FALSE, prop.chisq=FALSE,chisq=TRUE, missing.include=FALSE)

Error in CrossTable(Clindata_Female$matsmok0, Clindata_Female$cytokine, :
could not find function "CrossTable"

Have you loaded the package where the CrossTable function is from? The packages you load (tidyverse, dplyr, tidyr) do not contain a function named CrossTable.

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

I loaded package gmodels and it is working now.