Skip to content

Instantly share code, notes, and snippets.

@erzk
Last active April 12, 2018 20:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save erzk/5d22d19d811f630c3a3d70ee7961ff20 to your computer and use it in GitHub Desktop.
Save erzk/5d22d19d811f630c3a3d70ee7961ff20 to your computer and use it in GitHub Desktop.
# remove all but block borders
borders1 <- which(df$Mark == 1)
borders9 <- which(df$Mark == 9)
borders10 <- which(df$Mark == 10)
df[borders1,] <- 0
df[borders9,] <- 0
df[borders10,] <- 0
# block borders
block_borders <- which(df$Mark == 2)
# plot the cleaned signal
plot(df$CH1.703.6., type = "l", ylab = "Intensity")
abline(v = block_borders, col = "blue")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment