# Solved – Error within the dependent variable while running a RM ANOVA using ezANOVA

I'm having a problem running a repeated-measures ANOVA in R using the ezANOVA function.

I have data from 20 subjects – each subject participated in 2 conditions and 2 laps (80 total data points in a balanced design with no missing cells).

When I try to run the full RM ANOVA

``model<-ezANOVA(data=RMdata            ,dv=sd_speed            ,wid=P            ,within=c("Pr","lap")            ,type=3) ``

I get the following error over and over again:

``Error in ezANOVA_main(data = data, dv = dv, wid = wid, within = within,  :    "dv" must be numeric. ``

But the dv (sd_speed) is numeric!

``Classes ‘grouped_df’, ‘tbl_df’, ‘tbl’ and 'data.frame': 80 obs. of  4 variables:  \$ P       : Factor w/ 20 levels "1","2","3","4",..: 1 2 3 4 5 6 7 8 9 10 ...      \$ Pr      : Factor w/ 2 levels "control","VPA": 1 1 1 1 1 1 1 1 1 1 ...  \$ sd_speed: num  4.06 4.55 3.82 10.96 3.28 ...      \$ lap     : Factor w/ 2 levels "1","2": 1 1 1 1 1 1 1 1 1 1 ...  - attr(*, "vars")=List of 1   ..\$ : symbol P  - attr(*, "drop")= logi TRUE ``

I've read and tried everything and I really don't know how to fix it. It would be a pleasure if someone could help me!

Contents

This seems to be a bug associated with the `'tbl_df'` format of your data frame. You can turn your data into a standard R data frame by using the function `data.frame()`. For example, right within the call to ezANOVA:
``model<-ezANOVA(data=data.frame(RMdata)        ,dv=sd_speed        ,wid=P        ,within=c("Pr","lap")        ,type=3) ``
{"ft_lang_label":"__label__en","ft_lang_prob":0.80237705,"math_prob":0.9223554,"size":1869,"snap":"2023-40-2023-50","text_gpt3_token_len":580,"char_repetition_ratio":0.121179625,"word_repetition_ratio":0.16363636,"special_character_ratio":0.32423756,"punctuation_ratio":0.17874396,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.95162416,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2023-10-01T15:14:03Z\",\"WARC-Record-ID\":\"<urn:uuid:f2fe30ae-691c-4ca4-b7b8-b371445888f3>\",\"Content-Length\":\"72500\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:abe18c72-dc6f-404c-a0bb-481744e696b5>\",\"WARC-Concurrent-To\":\"<urn:uuid:a2c5abab-bdbe-496a-a123-d5d17810f6f3>\",\"WARC-IP-Address\":\"172.67.156.74\",\"WARC-Target-URI\":\"https://answerofmath.com/solved-error-within-the-dependent-variable-while-running-a-rm-anova-using-ezanova/\",\"WARC-Payload-Digest\":\"sha1:3ALQEOBYIVMMLTFSLSLPPWDXDG5H3IQR\",\"WARC-Block-Digest\":\"sha1:TEHQH626SHQN7IQ6C6Q6GXDGBAQJ46F5\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2023/CC-MAIN-2023-40/CC-MAIN-2023-40_segments_1695233510903.85_warc_CC-MAIN-20231001141548-20231001171548-00693.warc.gz\"}"}