Skip to content

Commit

Permalink
Couldn't find "select", added dplyr::select
Browse files Browse the repository at this point in the history
  • Loading branch information
Ranae committed Jun 27, 2017
1 parent cd5710d commit b48a373
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions _code/download_ssurgo.R
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ download_SSURGO <- function(SiteName = "field2",
soil$layer <- .bincode(soil$center, breaks=c(-1,soilLayer_breaks[soilLayer_breaks>0]))

soil %>%
select(-hydrogroup) %>%
dplyr::select(-hydrogroup) %>%
group_by(layer) %>%
mutate(thick = (max(center)-min(center))*10) %>%
summarise_all("mean") -> soil
Expand All @@ -195,5 +195,5 @@ download_SSURGO <- function(SiteName = "field2",
}

### Example
#soils <- download_SSURGO(SiteName = "field2",north=42.010759,south=42.01000,east=-93.740682,west=-93.741712)
#View(soils[2])
soils <- download_SSURGO(SiteName = "field2",north=42.010759,south=42.01000,east=-93.740682,west=-93.741712)
View(soils[2])

1 comment on commit b48a373

@Ranae
Copy link
Author

@Ranae Ranae commented on b48a373 Jun 27, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Trying out new PR feature in SourceTree. First seems to have worked, but not sure what's going on with the second.

Please sign in to comment.