diff --git a/src/notebooks/R Examples/Pathways Visualisation.ipynb b/src/notebooks/R Examples/Pathways Visualisation.ipynb index 9b17a97..b2d279a 100644 --- a/src/notebooks/R Examples/Pathways Visualisation.ipynb +++ b/src/notebooks/R Examples/Pathways Visualisation.ipynb @@ -703,9 +703,9 @@ "outputs": [], "source": [ "# Integrating all dataframes into a single dataframe\n", - "integrated_df = data.frame()\n", - "for (df in list_of_dfs){\n", - " integrated_df = merge(integrated_df,df, all = T)\n", + "integrated_df = list_of_dfs[[1]]\n", + "for (i in 2:length(list_of_dfs)){\n", + " integrated_df = merge(integrated_df,list_of_dfs[[i]], all = T)\n", "}\n", "\n", "## Cleaning the integrated table\n",