Update 0_before_after_datmod_prep.R Lines 6, 7, and 30 Dealing with I…#4
Open
atottenUSGS wants to merge 1 commit intomasterfrom
Open
Update 0_before_after_datmod_prep.R Lines 6, 7, and 30 Dealing with I…#4atottenUSGS wants to merge 1 commit intomasterfrom
atottenUSGS wants to merge 1 commit intomasterfrom
Conversation
…nf and NA Values line 6: In the dat variable there were some Inf values under days since fertilizer application. This function will change these values to 365, indicating a year since application. There may be a better way to deal with the Inf value, but for now a value of 365 has been put in place of Inf. Line 7: Carets findCorrelation function will not accept NAs or character values. A character value of 'NaN' was introduced at some point in the code. This function removes these 'NaN' characters and replaces them with true NA. These NA values can then be removed. line 30: 0 values are introduced at some point in the code. We cannot take the log10 value of 0, so all zeros were replaced by a very small number (0.0000001).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
…nf and NA Values
line 6: In the dat variable there were some Inf values under days since fertilizer application. This function will change these values to 365, indicating a year since application. There may be a better way to deal with the Inf value, but for now a value of 365 has been put in place of Inf.
Line 7: Carets findCorrelation function will not accept NAs or character values. A character value of 'NaN' was introduced at some point in the code. This function removes these 'NaN' characters and replaces them with true NA. These NA values can then be removed.
line 30: 0 values are introduced at some point in the code. We cannot take the log10 value of 0, so all zeros were replaced by a very small number (0.0000001).