Skip to content

Commit

Permalink
Version 0.6.2 rlease
Browse files Browse the repository at this point in the history
  • Loading branch information
cjendres1 committed Dec 28, 2015
1 parent e467341 commit 9606edd
Show file tree
Hide file tree
Showing 3 changed files with 63 additions and 41 deletions.
2 changes: 1 addition & 1 deletion R/nhanes.R
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ nhanesDXA <- function(year, suppl=FALSE, destfile=NULL) {
return(sasxport.get(tf,lowernames=FALSE))
}
}
} else { #If no specific year is given then just retrieve all years
} else { # Year not provided - no data will be returned
stop("Year is required")
}
}
Expand Down
4 changes: 3 additions & 1 deletion vignettes/Introducing_nhanesA.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ Some discretion is applied by nhanesTranslate such that not all of the coded col

### Import Dual X-Ray Absorptiometry Data
Dual X-Ray Absorptiometry (DXA) Data were acquired from 1999-2006. The tables are considerably larger than most
NHANES data tables and are available via ftp server only. More information may be found at http://www.cdc.gov/nchs/nhanes/dxx/dxa.htm. By default the DXA data are imported into the R environment, however, because the tables are quite large it may be desirable to save the data to a local file then import to R as needed. Note that nhanesTranslate can be applied to DXA data but that only the 2005-2006 translation tables are used as those are the only DXA codes that are available in html format.
NHANES data tables and are available via ftp server only. More information may be found at http://www.cdc.gov/nchs/nhanes/dxx/dxa.htm. By default the DXA data are imported into the R environment, however, because the tables are quite large it may be desirable to save the data to a local file then import to R as needed. Note that nhanesTranslate can be applied to DXA data but that only the 2005-2006 translation tables are used as those are the only DXA codes that are currently available in html format.
```{r, eval=FALSE}
#Import into R
dxx_b <- nhanesDXA(2001)
Expand All @@ -113,6 +113,8 @@ dxalist <- c('DXAEXSTS', 'DXITOT', 'DXIHE')
dxx_b <- nhanesTranslate(colnames=dxalist, data=dxx_b, dxa=T)
```

If you are interested in working with accelerometer data from 2003-2006 then please see packages nhanesaccel http://r-forge.r-project.org/R/?group_id=1733 and accelerometry http://cran.r-project.org/package=accelerometry.

#### Please send any feedback or requests to [email protected]. Hope you enjoy your experience with nhanesA!
Sincerely,
Christopher Endres
Loading

0 comments on commit 9606edd

Please sign in to comment.