Working on slides

This commit is contained in:
Alex Gebben Work 2025-09-08 17:21:02 -06:00
parent 78f247337f
commit aaeb13661f
2 changed files with 14 additions and 15 deletions

View File

@ -5,7 +5,7 @@
# so the results can reproduced more easily if the data changes.
dir.create("Data",showWarnings = FALSE)
dir.create("Data/Orig_Data",showWarnings = FALSE)
#Check if direjctory exits
#Check if directory exits
dir.exists("Data/Orig_Data")
# Help --------------------------------------------------------------------

View File

@ -124,7 +124,7 @@
\begin{frame}{File Management}
\begin{itemize}
\onslide<1->{\item Create directories for data}
\onslide<2->{\item Create Directories for scripts}
\onslide<2->{\item Create directories for scripts}
\onslide<3->{\item Make code do most of the cleaning}
\onslide<4->{\item Clear naming of files}
\onslide<5->{\item Document all files with a Readme file}
@ -145,21 +145,20 @@
\column{0.5\textwidth}
\textbf{Useful Functions}
\begin{itemize}
\onslide<2->{\item \texttt{create.dir()}}
\onslide<2->{\item \texttt{dir.create()}}
\onslide<3->{\item\texttt{dir.exists()}}
\onslide<4->{\item\texttt{file.exists()}}
\onslide<5->{\item\texttt{list.files()}}
\onslide<6->{\item\texttt{dir.create()}}
\end{itemize}
\column{0.5\textwidth}
\onslide<7->{\textbf{Saving Data}
\onslide<6->{\textbf{Saving Data}
\begin{itemize}
\onslide<8->{\item \texttt{write\_csv()}}
\onslide<9->{\item \texttt{write\_excel\_csv()}}
\onslide<10->{\item\texttt{write\_delim()}}
\onslide<11->{\item\texttt{saveRDS()}}
\onslide<12->{\item\texttt{ggsave()}}
\onslide<13->{\item\texttt{write.csv()}}
\onslide<7->{\item \texttt{write\_csv()}}
\onslide<8->{\item \texttt{write\_excel\_csv()}}
\onslide<9->{\item\texttt{write\_delim()}}
\onslide<10->{\item\texttt{saveRDS()}}
\onslide<11->{\item\texttt{ggsave()}}
\onslide<12->{\item\texttt{write.csv()}}
\end{itemize}
}
\end{columns}
@ -175,7 +174,7 @@
Keep your main working space clean, and separate what you can.
\vspace{1.5em}
\begin{enumerate}
\onslide<2->{\item Make diffrent files for each main data step. Downloading, cleaning, various analyses.}
\onslide<2->{\item Make different files for each main data step. Downloading, cleaning, various analyses.}
\onslide<3->{\item You can save the data downloading portion as a file called \texttt{1\_EIA\_Data\_Proc.R}}
\onslide<4->{\item In the main file you could load the code with \texttt{source(``1\_EIA\_Data\_Proc.R'')}}
\onslide<5->{R will run the code in the current directory even if the script is saved elsewhere.}
@ -218,7 +217,7 @@
\onslide<3->{\item File names contain spaces}
\onslide<4->{\item Same name but different capitalization}
\onslide<5->{\item Names dont describe their contents ``temp''}
\onslide<6->{\item Outputs should be in seperate directory from inputs}
\onslide<6->{\item Outputs should be in separate directory from inputs}
\onslide<7->{\item Outputs files should have dates in the name}
\end{itemize}
}