<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://www.organicdatascience.org/gleonfellowship/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Morales</id>
		<title>Gleon Fellowship - User contributions [en]</title>
		<link rel="self" type="application/atom+xml" href="https://www.organicdatascience.org/gleonfellowship/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Morales"/>
		<link rel="alternate" type="text/html" href="https://www.organicdatascience.org/gleonfellowship/index.php/Special:Contributions/Morales"/>
		<updated>2026-04-05T16:59:53Z</updated>
		<subtitle>User contributions</subtitle>
		<generator>MediaWiki 1.24.1</generator>

	<entry>
		<id>https://www.organicdatascience.org/gleonfellowship/index.php?title=Looping_a_Function_Over_Multiple_Data_Files_-_Mindy_Morales&amp;diff=533</id>
		<title>Looping a Function Over Multiple Data Files - Mindy Morales</title>
		<link rel="alternate" type="text/html" href="https://www.organicdatascience.org/gleonfellowship/index.php?title=Looping_a_Function_Over_Multiple_Data_Files_-_Mindy_Morales&amp;diff=533"/>
				<updated>2015-01-26T19:41:47Z</updated>
		
		<summary type="html">&lt;p&gt;Morales: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== Usefulness of skill ===&lt;br /&gt;
* DOM fluorescence spectroscopy generates many large matrix files&lt;br /&gt;
* Files require multiple corrections, calculations, and extraction of wavelength regions to provide useful information about DOM pool&lt;br /&gt;
* Usually done in MATLAB; open source code has not been developed for R&lt;br /&gt;
* Technique is not exclusive to EEM data and can be applied to any analysis that requires applying the same operation to multiple files. &lt;br /&gt;
&lt;br /&gt;
=== Challenges === &lt;br /&gt;
Working directory should only contain files of specified extension that you want to analyze&lt;br /&gt;
&lt;br /&gt;
=== Sample code ===&lt;br /&gt;
In this example, a humification index (HIX, with corrections from Ohno 2008) is calculated from multiple .csv files &lt;br /&gt;
&lt;br /&gt;
;Define function&lt;br /&gt;
: &amp;lt;code&amp;gt;HIX&amp;lt;-function(low,high){sum(high)/(sum(high)+sum(low))}&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
;Batch import csv files from wd&lt;br /&gt;
: &amp;lt;code&amp;gt;hixfiles &amp;lt;- list.files(pattern = &amp;quot;csv&amp;quot;)&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
;Create NULL vector to drop data into&lt;br /&gt;
: &amp;lt;code&amp;gt;hix_o &amp;lt;- NULL&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
;Loop calculates HIX across all files in wd&lt;br /&gt;
: &amp;lt;code&amp;gt;for (i in 1:length(hixfiles)){&lt;br /&gt;
    tmp &amp;lt;-  read.csv(hixfiles[i])&lt;br /&gt;
    hix_o[i] = HIX(tmp$low, tmp$high)&lt;br /&gt;
 }&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
;Define vector to store results&lt;br /&gt;
: &amp;lt;code&amp;gt;results = data.frame(hixfiles, hix_o)&amp;lt;/code&amp;gt;&lt;br /&gt;
: &amp;lt;code&amp;gt;print(results)&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
;Export to wd&lt;br /&gt;
: &amp;lt;code&amp;gt;write.csv(hix_o,file=&amp;quot;hix.csv&amp;quot;)&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- Add any wiki Text above this Line --&amp;gt;&lt;br /&gt;
&amp;lt;!-- Do NOT Edit below this Line --&amp;gt;&lt;br /&gt;
{{#set:&lt;br /&gt;
	Expertise=R_programming|&lt;br /&gt;
	Owner=Mindy|&lt;br /&gt;
	Progress=100|&lt;br /&gt;
	StartDate=2015-01-26|&lt;br /&gt;
	TargetDate=2015-01-26|&lt;br /&gt;
	Type=Low}}&lt;/div&gt;</summary>
		<author><name>Morales</name></author>	</entry>

	<entry>
		<id>https://www.organicdatascience.org/gleonfellowship/index.php?title=Looping_a_Function_Over_Multiple_Data_Files_-_Mindy_Morales&amp;diff=532</id>
		<title>Looping a Function Over Multiple Data Files - Mindy Morales</title>
		<link rel="alternate" type="text/html" href="https://www.organicdatascience.org/gleonfellowship/index.php?title=Looping_a_Function_Over_Multiple_Data_Files_-_Mindy_Morales&amp;diff=532"/>
				<updated>2015-01-26T19:37:45Z</updated>
		
		<summary type="html">&lt;p&gt;Morales: /* Sample code */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== Usefulness of skill ===&lt;br /&gt;
* DOM fluorescence spectroscopy generates many large matrix files&lt;br /&gt;
* Files require multiple corrections, calculations, and extraction of wavelength regions to provide useful information about DOM pool&lt;br /&gt;
* Usually done in MATLAB; open source code has not been developed for R&lt;br /&gt;
* Technique is not exclusive to EEM data and can be applied to any analysis that requires applying the same operation to multiple files. &lt;br /&gt;
&lt;br /&gt;
=== Challenges === &lt;br /&gt;
Working directory should only contain files of specified extension that you want to analyze&lt;br /&gt;
&lt;br /&gt;
=== Sample code ===&lt;br /&gt;
In this example, a humification index (HIX, with corrections from Ohno 2008) is calculated from multiple .csv files &lt;br /&gt;
&lt;br /&gt;
;Define function&lt;br /&gt;
: &amp;lt;code&amp;gt;HIX&amp;lt;-function(low,high){sum(high)/(sum(high)+sum(low))}&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
;Batch import csv files from wd&lt;br /&gt;
: &amp;lt;code&amp;gt;hixfiles &amp;lt;- list.files(pattern = &amp;quot;csv&amp;quot;)&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
;Create NULL vector to drop data into&lt;br /&gt;
: &amp;lt;code&amp;gt;hix_o &amp;lt;- NULL&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
;Loop calculates HIX across all files in wd&lt;br /&gt;
: &amp;lt;code&amp;gt;for (i in 1:length(hixfiles)){&lt;br /&gt;
    tmp &amp;lt;-  read.csv(hixfiles[i])&lt;br /&gt;
    hix_o[i] = HIX(tmp$low, tmp$high)&lt;br /&gt;
 }&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
;Define vector to store results&lt;br /&gt;
: &amp;lt;code&amp;gt;results = data.frame(hixfiles, hix_o)&amp;lt;/code&amp;gt;&lt;br /&gt;
: &amp;lt;code&amp;gt;print(results)&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
;Export to wd&lt;br /&gt;
: &amp;lt;code&amp;gt;write.csv(hix_o,file=&amp;quot;hix.csv&amp;quot;)&amp;lt;/code&amp;gt;&lt;/div&gt;</summary>
		<author><name>Morales</name></author>	</entry>

	<entry>
		<id>https://www.organicdatascience.org/gleonfellowship/index.php?title=Looping_a_Function_Over_Multiple_Data_Files_-_Mindy_Morales&amp;diff=531</id>
		<title>Looping a Function Over Multiple Data Files - Mindy Morales</title>
		<link rel="alternate" type="text/html" href="https://www.organicdatascience.org/gleonfellowship/index.php?title=Looping_a_Function_Over_Multiple_Data_Files_-_Mindy_Morales&amp;diff=531"/>
				<updated>2015-01-26T19:36:56Z</updated>
		
		<summary type="html">&lt;p&gt;Morales: Created page with &amp;quot;=== Usefulness of skill === * DOM fluorescence spectroscopy generates many large matrix files * Files require multiple corrections, calculations, and extraction of wavelength...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== Usefulness of skill ===&lt;br /&gt;
* DOM fluorescence spectroscopy generates many large matrix files&lt;br /&gt;
* Files require multiple corrections, calculations, and extraction of wavelength regions to provide useful information about DOM pool&lt;br /&gt;
* Usually done in MATLAB; open source code has not been developed for R&lt;br /&gt;
* Technique is not exclusive to EEM data and can be applied to any analysis that requires applying the same operation to multiple files. &lt;br /&gt;
&lt;br /&gt;
=== Challenges === &lt;br /&gt;
Working directory should only contain files of specified extension that you want to analyze&lt;br /&gt;
&lt;br /&gt;
=== Sample code ===&lt;br /&gt;
In this example, a humification index (HIX, with corrections from Ohno 2008) is calculated from multiple .csv files &lt;br /&gt;
&lt;br /&gt;
;Define function&lt;br /&gt;
: &amp;lt;code&amp;gt;HIX&amp;lt;-function(low,high){  sum(high)/(sum(high)+sum(low))}&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
;Batch import csv files from wd&lt;br /&gt;
: &amp;lt;code&amp;gt;hixfiles &amp;lt;- list.files(pattern = &amp;quot;csv&amp;quot;)&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
;Create NULL vector to drop data into&lt;br /&gt;
: &amp;lt;code&amp;gt;hix_o &amp;lt;- NULL&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
;Loop calculates HIX across all files in wd&lt;br /&gt;
: &amp;lt;code&amp;gt;for (i in 1:length(hixfiles)){&lt;br /&gt;
    tmp &amp;lt;-  read.csv(hixfiles[i])&lt;br /&gt;
    hix_o[i] = HIX(tmp$low, tmp$high)&lt;br /&gt;
 }&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
;Define vector to store results&lt;br /&gt;
: &amp;lt;code&amp;gt;results = data.frame(hixfiles, hix_o)&amp;lt;/code&amp;gt;&lt;br /&gt;
: &amp;lt;code&amp;gt;print(results)&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
;Export to wd&lt;br /&gt;
: &amp;lt;code&amp;gt;write.csv(hix_o,file=&amp;quot;hix.csv&amp;quot;)&amp;lt;/code&amp;gt;&lt;/div&gt;</summary>
		<author><name>Morales</name></author>	</entry>

	<entry>
		<id>https://www.organicdatascience.org/gleonfellowship/index.php?title=Skills_Sharing_Activity&amp;diff=530</id>
		<title>Skills Sharing Activity</title>
		<link rel="alternate" type="text/html" href="https://www.organicdatascience.org/gleonfellowship/index.php?title=Skills_Sharing_Activity&amp;diff=530"/>
				<updated>2015-01-26T17:55:28Z</updated>
		
		<summary type="html">&lt;p&gt;Morales: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Task]]&lt;br /&gt;
&lt;br /&gt;
==Introduction to R coding==&lt;br /&gt;
&lt;br /&gt;
The first workshop began with an R Skills Sharing activity. All fellows presented on their chosen skill. &lt;br /&gt;
&lt;br /&gt;
The general instructions were: &lt;br /&gt;
Identify a skill, tool technique you currently do not know how to implement, and learn how to carry it out. Explain the skill’s relevance to you (why did you choose it?) and  to others (how can others use it?), and visualize results in a plot, if appropriate. Overall, you should aim to stretch a bit outside of your current knowledge ‘comfort zone’.&lt;br /&gt;
&lt;br /&gt;
The presentations are included here. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- Add any wiki Text above this Line --&amp;gt;&lt;br /&gt;
&amp;lt;!-- Do NOT Edit below this Line --&amp;gt;&lt;br /&gt;
{{#set:&lt;br /&gt;
	Owner=Hilary|&lt;br /&gt;
	StartDate=2015-01-12|&lt;br /&gt;
	SubTask=Downloading_and_Processing_Radiation_Data|&lt;br /&gt;
	SubTask=Batch_Files_-_Hilary_Dugan|&lt;br /&gt;
	SubTask=Importing_Google_Maps_to_Plot_Data-_Kait_Farrell|&lt;br /&gt;
	SubTask=Filling_Time-Series_Data_Gaps_-_Derek_Roberts|&lt;br /&gt;
	SubTask=Creating_Maps_and_Assessing_Spatial_Autocorrelation|&lt;br /&gt;
	SubTask=Zonal_Statistics_or_Extracting_Raster_Data|&lt;br /&gt;
        SubTask=Looping_a_Function_Over_Multiple_Data_Files_-_Mindy_Morales|&lt;br /&gt;
	TargetDate=2015-01-23|&lt;br /&gt;
	Type=Medium}}&lt;/div&gt;</summary>
		<author><name>Morales</name></author>	</entry>

	<entry>
		<id>https://www.organicdatascience.org/gleonfellowship/index.php?title=Participants&amp;diff=526</id>
		<title>Participants</title>
		<link rel="alternate" type="text/html" href="https://www.organicdatascience.org/gleonfellowship/index.php?title=Participants&amp;diff=526"/>
				<updated>2015-01-23T20:29:24Z</updated>
		
		<summary type="html">&lt;p&gt;Morales: /* Fellows */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Task]]&lt;br /&gt;
&lt;br /&gt;
===Leadership Team===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Name&lt;br /&gt;
! Institution&lt;br /&gt;
|-&lt;br /&gt;
| Paul Hanson&lt;br /&gt;
| University of Wisconsin-Madison&lt;br /&gt;
|-&lt;br /&gt;
| Kathleen Weathers&lt;br /&gt;
| Cary Institute&lt;br /&gt;
|-&lt;br /&gt;
| Grace Hong&lt;br /&gt;
| University of Wisconsin-Madison&lt;br /&gt;
|-&lt;br /&gt;
| Hilary Dugan&lt;br /&gt;
| University of Wisconsin-Madison&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Fellows===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Name&lt;br /&gt;
! Institution&lt;br /&gt;
|-&lt;br /&gt;
|Kait Farrell&lt;br /&gt;
|University of Georgia &lt;br /&gt;
|-&lt;br /&gt;
|Flora Krivak-Tetley&lt;br /&gt;
| Dartmouth College&lt;br /&gt;
|-&lt;br /&gt;
| Ian McCullough&lt;br /&gt;
| University of California, Santa Barbara&lt;br /&gt;
|-&lt;br /&gt;
| Mindy Morales&lt;br /&gt;
| Iowa State&lt;br /&gt;
|-&lt;br /&gt;
| Derek Roberts&lt;br /&gt;
| University of California, Davis&lt;br /&gt;
|-&lt;br /&gt;
| Nick Skaff&lt;br /&gt;
| Michigan State University&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- Add any wiki Text above this Line --&amp;gt;&lt;br /&gt;
&amp;lt;!-- Do NOT Edit below this Line --&amp;gt;&lt;br /&gt;
{{#set:&lt;br /&gt;
	Owner=Hilary|&lt;br /&gt;
	Progress=50|&lt;br /&gt;
	StartDate=2015-01-11|&lt;br /&gt;
	TargetDate=2015-01-16|&lt;br /&gt;
	Type=Low}}&lt;/div&gt;</summary>
		<author><name>Morales</name></author>	</entry>

	</feed>