Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ruCombine error with mutate() #1

Closed
cembrowskilab opened this issue Oct 25, 2022 · 1 comment
Closed

ruCombine error with mutate() #1

cembrowskilab opened this issue Oct 25, 2022 · 1 comment
Assignees

Comments

@cembrowskilab
Copy link

Hey Kaitlin!

The ruCombine() function gives an error when I try to combine 3 data tables all read using the ruRead() function - "Error in UseMethod("mutate"): no applicable method for 'mutate' applied to an object of class "c('double', 'numeric')"

I'm guessing it might have something to do with the metadata columns? I have region, anum, and section filled in for each of the 3 tables.

Screenshot of script + console:
Screen Shot 2022-10-25 at 15 36 11

Screenshot of console when I run glimpse(ATN_1)
Screen Shot 2022-10-25 at 15 49 19

Thanks sm!! :)

@kaitsull kaitsull self-assigned this Apr 4, 2023
@kaitsull
Copy link
Owner

kaitsull commented Apr 4, 2023

Hey Angela, thanks for posting.

The function takes a list of data frames, not a vector.
The issue here is that you are using the c() function and not the list() function within ruCombine()

You can check out the instructions in the README.md file or use help(ruCombine) in the future to see arguments for each function. 😸

(Also in the future if you can open issues on the forked repo on our lab's GitHub only that would be super helpful!)

@kaitsull kaitsull closed this as completed Apr 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants