Skip to content
This repository has been archived by the owner on Nov 1, 2022. It is now read-only.

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
zcrysler committed Aug 3, 2018
1 parent f9a9908 commit a0f55f4
Show file tree
Hide file tree
Showing 6 changed files with 46 additions and 51 deletions.
2 changes: 1 addition & 1 deletion 05-DataCleaning.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ library(lubridate)

Recall from Chapter \@ref(accessingData) that when accessing the sample database, you will need to input 'motus.sample' in the R console as both username and password when prompted by the tagme() user authentication process. This section assumes you have already completed the initial sample data download.

When accessing the alltags table, we remove some unnecessary variables to reduce the overall size of the data set and make it easier to work with. **This is particularly important for large, unwieldy projects**; details on how to view the variables in a tbl, and how to filter and subset prior to collecting data into a dataframe can be found in Chapter \@ref(convertToFlat). We then create receiver latitude and longitude variables ('recvLat', 'recvLon', 'recvAlt') based on the coordinates recorded by the receiver GPS ('gpsLat', 'gpsLon', 'gpdAlt'), and where those are not available, infilled with coordinates from the receiver deployment metadata ('recvDeployLat', 'recvDeployLon', 'recvDeployAlt'). We use the 'collect()' and 'as.data.frame()' statements to transform the dataframe into a 'flat' file, and then transform all time stamp variables from seconds since January 1 1970 to datetime (POSIXct) format. Finally, we create 'receiver names' from the latitude and longitude variables for those receivers in the database that do not have these values filled in.
When accessing the alltags table, we remove some unnecessary variables to reduce the overall size of the data set and make it easier to work with. **This is particularly important for large, unwieldy projects**; details on how to view the variables in a tbl, and how to filter and subset prior to collecting data into a dataframe can be found in Chapter \@ref(accessSQL). We then create receiver latitude and longitude variables ('recvLat', 'recvLon', 'recvAlt') based on the coordinates recorded by the receiver GPS ('gpsLat', 'gpsLon', 'gpdAlt'), and where those are not available, infilled with coordinates from the receiver deployment metadata ('recvDeployLat', 'recvDeployLon', 'recvDeployAlt'). We use the 'collect()' and 'as.data.frame()' statements to transform the dataframe into a 'flat' file, and then transform all time stamp variables from seconds since January 1 1970 to datetime (POSIXct) format. Finally, we create 'receiver names' from the latitude and longitude variables for those receivers in the database that do not have these values filled in.

```{r importData5, eval = FALSE}
Expand Down
Loading

0 comments on commit a0f55f4

Please sign in to comment.