search for: j2000

Displaying 6 results from an estimated 6 matches for "j2000".

Did you mean: 2000
2017 Oct 05
3
dealing with a messy dataset
...---------------------------------- Bytes Format Units Label Explanations -------------------------------------------------------------------------------- 1- 18 A18 --- Name Galaxy name in well-known catalogs 20- 21 I2 h RAh Hour of Right Ascension (J2000) 22- 23 I2 min RAm Minute of Right Ascension (J2000) 24- 27 F4.1 s RAs Second of Right Ascension (J2000) 28 A1 --- DE- Sign of the Declination (J2000) 29- 30 I2 deg DEd Degree of Declination (J2000) 31- 32 I2 arc...
2017 Oct 05
0
dealing with a messy dataset
...----------------- > Bytes Format Units Label Explanations > -------------------------------------------------------------------------------- > 1- 18 A18 --- Name Galaxy name in well-known catalogs > 20- 21 I2 h RAh Hour of Right Ascension (J2000) > 22- 23 I2 min RAm Minute of Right Ascension (J2000) > 24- 27 F4.1 s RAs Second of Right Ascension (J2000) > 28 A1 --- DE- Sign of the Declination (J2000) > 29- 30 I2 deg DEd Degree of Declination (J2000) >...
2017 Oct 05
1
dealing with a messy dataset
...gt;> Bytes Format Units Label Explanations >> -------------------------------------------------------------------------------- >> 1- 18 A18 --- Name Galaxy name in well-known catalogs >> 20- 21 I2 h RAh Hour of Right Ascension (J2000) >> 22- 23 I2 min RAm Minute of Right Ascension (J2000) >> 24- 27 F4.1 s RAs Second of Right Ascension (J2000) >> 28 A1 --- DE- Sign of the Declination (J2000) >> 29- 30 I2 deg DEd Degree of Decl...
2017 Oct 05
0
dealing with a messy dataset
It looks like fixed width. I just used the last position of each field to get the size and used the 'readr' package; > input <- "And XVIII 000214.5+450520 0.69 17 9 0.00 -8.7 26.8 6.44 6.78 < 6.65 -44 0.5 MESSIER031 0.6 1.54 + PAndAS-03 000356.4+405319 0.10 17 0.00 -3.6 27.8 4.38 2.8 MESSIER031
2011 May 04
2
first occurrence of a value?
...df below? I want to use this position to programmatically create the variable 'year'. I'v come up with a solution, but I find it downright ugly. Is there a simpler way? I was hoping for a useful built-in function that I don;t yet know about. df <- data.frame(j1999=c(0,0,0,0,1,0), j2000=c(NA, 1, 1, 1, 0, 0), j2001=c(1, 0, 1, 0, 0, 0), year=c(2001, 2000, 2000, 2000, 1999, NA)) library(gsubfn) x <- apply(df==1, 1, which) giveYear <- function(df) { return( as.numeric(gsubfn("^[^0-9]+", "", names(df)[1])) ) } df$year2 <- sapply(x, giveYear) Thanks in ad...
2017 Oct 05
4
dealing with a messy dataset
dear R-users, I am facing a quite regular and basic problem when it comes to dealing with datasets, but I cannot find any satisfying answer so far. I have a messy dataset of galaxies like that : And XVIII 000214.5+450520 0.69 17 9 0.00 -8.7 26.8 6.44 6.78 < 6.65 -44 0.5 MESSIER031 0.6 1.54 PAndAS-03 000356.4+405319 0.10 17 0.00 -3.6 27.8 4.38