Skip to content

Conversation

@atottenUSGS
Copy link
Owner

…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).

…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).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants