R Dataset / Package boot / salinity

On this R-data statistics page, you will find information about the salinity data set which pertains to Water Salinity and River Discharge. The salinity data set is found in the boot R package. You can load the salinity data set in R by issuing the following command at the console data("salinity"). This will load the data into a variable called salinity. If R says the salinity data set is not found, you can try installing the package by issuing this command install.packages("boot") and then attempt to reload the data with the library() command. If you need to download R, you can go to the R project website. You can download a CSV (comma separated values) version of the salinity R data set. The size of this file is about 506 bytes.

Water Salinity and River Discharge


The salinity data frame has 28 rows and 4 columns.

Biweekly averages of the water salinity and river discharge in Pamlico Sound, North Carolina were recorded between the years 1972 and 1977. The data in this set consists only of those measurements in March, April and May.




This data frame contains the following columns:


The average salinity of the water over two weeks.


The average salinity of the water lagged two weeks. Since only spring is used, the value of lag is not always equal to the previous value of sal.


A factor indicating in which of the 6 biweekly periods between March and May, the observations were taken. The levels of the factor are from 0 to 5 with 0 being the first two weeks in March.


The amount of river discharge during the two weeks for which sal is the average salinity.


The data were obtained from

Ruppert, D. and Carroll, R.J. (1980) Trimmed least squares estimation in the linear model. Journal of the American Statistical Association, 75, 828–838.


Davison, A.C. and Hinkley, D.V. (1997) Bootstrap Methods and Their Application. Cambridge University Press.

Dataset imported from https://www.r-project.org.

Attachments: csv, json

<iframe src="https://pmagunia.com/iframe/r-dataset-package-boot-salinity.html" width="100%" height="100%" style="border:0px"></iframe>