Trouble with .csv Data Set

Hi All,

I'm basically looking to do some simple descriptive statistics with a .csv dataset I downloaded from the internet (gov't files on students with disabilities). Whenever I load the dataset into rstudio and try running simple functions on any of the columns, I keep getting a return of "NA". I'm super new to using rstudio and r and I know this is probably a simple fix, but I'm at the point where I'm so stuck with it I'm just going around in circles and confusing myself more. Any help would be appreciated. Thanks!

Many functions will return NA if there is a single NA value unless you set the na.rm parameter to TRUE. For example, if your data frame is named DF and it has an Age column, you can run

mean(DF$Age,  na.rm = TRUE)

to tell the mean function to ignore NA values.

Yup that did it! Thanks so much for the help!

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.