R kode til indlæsning af datasæt

Her finder du R kode til at indlæse datasæt, som benyttes ved forelæsningerne og øvelsestimerne, direkte fra link. Har du gemt tekst-filen (.txt) i din folder, skal du erstatte linket med filens placering.

vitd <- read.csv("http://staff.pubhealth.ku.dk/~lts/basal/data/VitaminD.txt", sep=";", na.strings=".")
mfsv <- read.csv("http://staff.pubhealth.ku.dk/~lts/basal/data/mf_sv.txt", sep="")
s <- read.csv("http://staff.pubhealth.ku.dk/~sr/BasicStatistics/datasets/sundby.txt", sep="", na.strings=".")
w <- read.csv("http://staff.pubhealth.ku.dk/~sr/BasicStatistics/datasets/wright.txt", sep="" )

oeko <- read.csv("http://staff.pubhealth.ku.dk/~sr/BasicStatistics/datasets/oeko.txt", sep="" )
sp <- read.csv("http://staff.pubhealth.ku.dk/~lts/basal/data/space.txt", sep="" )

s <- read.csv("http://staff.pubhealth.ku.dk/~sr/BasicStatistics/datasets/sovetimer.txt", sep="" )

rmr <- read.csv("http://staff.pubhealth.ku.dk/~sr/BasicStatistics/datasets/rmr.txt", sep="" )
s <- read.csv("http://staff.pubhealth.ku.dk/~sr/BasicStatistics/datasets/sundby.txt", sep="", na.strings=".")

cal <- read.csv("http://staff.pubhealth.ku.dk/~sr/BasicStatistics/datasets/calcium.txt", sep="", na.strings="." )