DS4PS / cpp-526-spr-2020

Course shell for CPP 526 Foundations of Data Science I for Spring 2020.
http://ds4ps.org/cpp-526-spr-2020/
3 stars 0 forks source link

Isolation Not Transferring #34

Open Sean-In-The-Library opened 4 years ago

Sean-In-The-Library commented 4 years ago

Hey Friends,

I've got the isolated section of my dashboard for "substances" but it doesn't seem to be transferring to my full project well. Is this possibly because I have assigned dat to d2 (so it's conflicting with portions higher in the document?

Here is the relevant portion that seems to be breaking when I incorporate it into the larger RMD file (it runs fine on its own):

driver1.sub <- input$Substance

start.time <- input$hour[1]
end.time <- input$hour[2]

d2 <- dat %>% filter(d1.substance == driver1.sub, hour >= start.time & hour <= end.time,

Thank you for any help provided.

jamisoncrawford commented 4 years ago

What's good, Sean?

Can you share the corresponding code chunk of the input function and arguments? (Like sliderInput() or selectInput()?).

(it runs fine on its own)

How do you mean? As an individual chunk or are you using the separate tab .Rmd template I shared and showed in the video?

Overwriting d2 should really only affect code that's downstream... in theory. So you can use Ctrl + F to see if dat or d2 are called elsewhere?