df_cone <- ps1_cone(
coords$ra,
coords$decl,
r_arcmin = 0.01,
table = 'mean',
release = 'dr2'
)
# tidyverse approach
df_cone |>
dplyr::select(dplyr::matches('[grizy]MeanPSFMag$'))
#> gMeanPSFMag rMeanPSFMag iMeanPSFMag zMeanPSFMag yMeanPSFMag
#> <num> <num> <num> <num> <num>
#> 1: 15.0402 14.553 14.2109 14.2814 14.3041
# or if you prefer data.table approach
df_cone[, .SD, .SDcols = grepl('[grizy]MeanPSFMag$', names(df_cone))]
#> gMeanPSFMag rMeanPSFMag iMeanPSFMag zMeanPSFMag yMeanPSFMag
#> <num> <num> <num> <num> <num>
#> 1: 15.0402 14.553 14.2109 14.2814 14.3041