inst/script/make-stars.R

# import stars data for HR diagram 
library(tidyverse)
stars <- read.table("inst/extdata/HRlist2.txt")
names(stars) <- c("star", "magnitude", "temp", "type")
stars$type <- str_remove(stars$type, "[^A-Z]+")
save(stars, file = "data/stars.rda", compress = "xz")

Try the dslabs package in your browser

Any scripts or data that you put into this service are public.

dslabs documentation built on May 29, 2024, 6:29 a.m.