From e58a54ce81de23f10cc14dcedda6625f10c62614 Mon Sep 17 00:00:00 2001 From: Sandy Rogers Date: Tue, 12 Mar 2024 11:11:48 +0000 Subject: [PATCH] fix "Search for Samples or Studies" R notebook: sparse df merge --- src/notebooks/R Examples/Search for Samples or Studies.ipynb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/notebooks/R Examples/Search for Samples or Studies.ipynb b/src/notebooks/R Examples/Search for Samples or Studies.ipynb index 4a5c7eb..90769fc 100644 --- a/src/notebooks/R Examples/Search for Samples or Studies.ipynb +++ b/src/notebooks/R Examples/Search for Samples or Studies.ipynb @@ -88,6 +88,7 @@ }, "outputs": [], "source": [ + "library(dplyr)\n", "library(vegan)\n", "library(ggplot2)\n", "library(phyloseq)\n", @@ -151,7 +152,7 @@ "source": [ "samps_np <- mgnify_query(mg, \"samples\", latitude_gte=88, maxhits=1)\n", "samps_sp <- mgnify_query(mg, \"samples\", latitude_lte=-88, maxhits=1)\n", - "samps_polar <- rbind(samps_np, samps_sp)" + "samps_polar <- bind_rows(samps_np, samps_sp)" ] }, {