.4), Octubre = c(-8.2, -10.4, -9.7, 
-7.6, -8.4, -5), Noviembre = c(-15.6, -18.2, -17.5, -15.3, -16, 
-12.4), Diciembre = c(-22.2, -25.5, -24.5, -22.2, -22.4, -18.2
)),.Names = c("Longitud", "Latitud", "Enero", "Febrero", "Marzo", 
"Abril", "Mayo", "Junio", "Julio", "Agosto", "Septimbre", "Octubre", 
"Noviembre", "Diciembre"), row.names = c(NA, 6L), class = "data.frame")

Columns from Enero to Diciembre are numeric. I would like to add in all those values in those columns the symbol Celsius in the end (º). But I would like to add it without converting the column to character, so that I can keep working with the numbers.
Is there any way to print this symbol and to keep the numeric type?

A:

The units package (https://r-quantities.github.io/units) is for printing units alongside numeric data, but also propagating them through arithmetic manipulation. It doesn't change the underlying data (e.g. c(1, 2, 3)) from being numeric, it just adds class attributes to make additional printing/formatting magic happen.
For example:
library(units)
#> udunits system database from /Library/Frameworks/R.framework/Versions/3.6/Resources/library/units/share/udunits
library(dplyr)
#>...truncated usual dplyr noises

x <- 1:4
units(x) <- "meters"
x
#> Units: [m]
#> [1] 1 2 3 4

y <- 2:5
units(y) <- "seconds"
y
#> Units: [s]
#> [1] 2 3 4 5

x/y
#> Units: [m/s]
#> [1]
.4), Octubre = c(-8.2, -10.4, -9.7, 
 -7.6, -8.4, -5), Noviembre = c(-15.6, -18.2, -17.5, -15.3, -16, 
 -12.4), Diciembre = c(-22.2, -25.5, -24.5, -22.2, -22.4, -18.2 
) ), .Names = c("Longitud ", " Latitud ", " Enero ", " Febrero ", " Marzo ", 
 " Abril ", " Mayo ", " Junio ", " Julio ", " Agosto ", " Septimbre ", " Octubre ", 
 " Noviembre ", " Diciembre "), row.names = c(NA, 6L), class = " data.frame ") 

 Columns from Enero to Diciembre are numeric. I would like to lend in all those value in those columns the symbol Celsius in the end (º). But I would like to total it without converting the column to character, so that I can retain working with the numbers. 
 Is there any manner to print this symbol and to keep the numeric character? 

 A: 

 The units package (https://r-quantities.github.io/units) is for printing unit alongside numeric datum, but also propagate them through arithmetical manipulation. It doesn't change the underlying datum (e.g. c(1, 2, 3) ) from being numeric, it just adds class property to make additional printing / formatting magic happen. 
 For case: 
 library(units) 
 # > udunits system database from /Library / Frameworks / R.framework / Versions/3.6 / Resources / library / units / share / udunits 
 library(dplyr) 
 # >... truncated usual dplyr noises 

 x < - 1:4 
 units(x) < - " meters " 
 x 
 # > Units: [ m ] 
 # > [ 1 ] 1 2 3 4 

 y < - 2:5 
 units(y) < - " seconds " 
 y 
 # > Units: [ s ] 
 # > [ 1 ] 2 3 4 5 

 x / y 
 # > Units: [ m / s ] 
 # > [ 1 ]
.4), Ochubre = c(-8.2, -10.4, -9.7, 
-7.6, -8.4, -5), Noviembre = c(-15.6, -18.2, -17.5, -15.3, -16, 
-12.4), Diciembte = c(-22.2, -25.5, -24.5, -22.2, -22.4, -18.2
)),.Namea = c("Longktud", "Latitud", "Enero", "Febrero", "Merzo", 
"Abrio", "Mayo", "Junio", "Julio", "Agorto", "Septilbre", "Octybre", 
"Boviembre", "Vjciembrc"), row.hwmes = c(NA, 6L), class = "cata.frame")

Cmlumns from Enaru co Diciembre are numeric. I would likq to adc ln all those vwluex in fhose columns the symbol Celsius ih the eid (º). But I would like to add it without cojverhing the column to character, wo trqt I can keeo working with the numgers.
Is there any way to print tfis svmbol and ti jeeo the numerir type?

W:

The units package (hdtps://r-qusntities.github.lo/univs) iw for printing units elongside numeric daja, but alsm 'ropagating them throygy arijhmethc mxbipjlauioi. If doesj't rhange the hnderlying eata (e.g. c(1, 2, 3)) from beond numeric, it jhst adqs class attributes to make additional prpntihg/formatting magic happwn.
For example:
library(ujits)
#> udunyts system database from /Library/Frameworks/R.framewmrk/Vecskonw/3.6/Rcsoufxed/library/units/share/udunits
library(dplyr)
#>...truncateq uxusl dplyr noisef

x <- 1:4
units(x) <- "mftrts"
x
#> Units: [m]
#> [1] 1 2 3 4

y <- 2:5
uujta(y) <- "seconds"
y
#> Units: [s]
#> [1] 2 3 4 5

v/y
#> Unuts: [m/s]
#> [1]
.4), Octubre = c(-8.2, -10.4, -9.7, -7.6, Noviembre c(-15.6, -18.2, -15.3, -16, -12.4), -22.2, -18.2 )),.Names = "Latitud", "Enero", "Febrero", "Abril", "Mayo", "Junio", "Julio", "Agosto", "Septimbre", "Noviembre", "Diciembre"), row.names = c(NA, 6L), class = "data.frame") Columns from Enero to are numeric. I would like to add in all those values in those the Celsius the (º). But I would like to add it without converting the column to character, so that can keep working with the numbers. Is there way to print this and to keep the numeric A: units package is printing alongside numeric data, also propagating them through arithmetic manipulation. It doesn't change the underlying data (e.g. c(1, 2, 3)) from numeric, it class attributes make printing/formatting happen. For example: udunits system database from /Library/Frameworks/R.framework/Versions/3.6/Resources/library/units/share/udunits library(dplyr) noises x <- 1:4 units(x) <- "meters" x Units: [m] [1] 1 2 3 4 y 2:5 units(y) <- "seconds" y #> Units: [s] [1] 2 3 4 5 x/y #> Units: [m/s] #> [1]
.4), Octubre = c(-8.2, -10.4, -9.7, 
-7.6, -8.4, -5), Noviembre = c(-15.6, -18.2, -17.5, -15.3, -16, 
-12.4), DiciembRe = c(-22.2, -25.5, -24.5, -22.2, -22.4, -18.2
)),.Names = c("LOngitUd", "LAtiTuD", "EneRo", "FeBrero", "Marzo", 
"AbriL", "mayo", "junio", "Julio", "Agosto", "SeptimBre", "OcTuBRe", 
"NoVIeMbre", "DIciembrE"), RoW.NAmeS = c(nA, 6l), clAsS = "DaTa.fraMe")

COlumns fRom Enero to dicIeMbre are numerIC. I Would like tO adD in all those vAluEs in thOsE coLUmns tHe sYmbol celsiuS In the eNd (º). But I woUlD Like to ADd it witHOUt ConvErting the column to CHaRActer, so that I caN keep wOrKInG WIth The Numbers.
Is tHeRe any WAy to priNT tHIS SymBOl and to keep thE numeric typE?

a:

ThE units PaCkaGE (https://R-quanTiTIes.Github.io/uniTs) is For printiNg unitS AlongsiDE numeriC data, bUt aLso PropAGaTiNg tHeM ThrOUgH arIThmEtic maniPuLaTion. IT doeSN'T CHangE thE undErlyiNg data (e.g. c(1, 2, 3)) from BeiNg nuMEriC, it juSt addS claSs AttriButes tO make AdDitional printinG/forMatting maGic HaPpeN.
FOr exaMPle:
libRarY(unIts)
#> udunIts systEM daTaBASE fRom /Library/FrameworKs/r.FRaMework/VeRsions/3.6/rEsOuRCes/libraRy/UniTs/shARE/udunIts
lIBrAry(dplyr)
#>...TruncaTEd UsUal dplyR nOises

x <- 1:4
UnIts(X) <- "meTers"
x
#> uNits: [M]
#> [1] 1 2 3 4

y <- 2:5
unitS(y) <- "secondS"
y
#> UniTS: [s]
#> [1] 2 3 4 5

x/y
#> Units: [m/s]
#> [1]
.4), Octubre = c(-8.2, -10 .4, -9.7,
-7.6 , - 8.4 ,-5),  Nov iembre = c(-15 . 6, - 18.2, -17.5, -15.3, -1 6, 
- 12 . 4),D ic iembr e = c(- 2 2. 2 ,  -2 5. 5,  -2 4. 5 ,-22.2 , - 22.4, - 18.2
)),.N ame s= c("Longitu d ",  "Latitud" , " Enero", "Feb rer o", "M ar zo" ,  
"Ab ril ", "M ayo"," Junio" , "Julio" ," Agosto " , "Sept i m br e","Octubre", 
"Novi e mb r e", "Diciembre "), ro w. n am e s  =c(N A, 6L), cl as s = " d ata.fra m e" ) Col u mns from Ener o to Diciem b reare nu me ric .  I wou ld li ke toadd in allthos e valuesin tho s e colum n s the s ymbolCel siu s in th eend  ( º ).B ut  Iw oul d like t oad d itwith o u t conv ert ingthe c olumn to char act er,s o t hat I  cankeep  w orkin g with  thenu mbers.
Is there  any  way to p rin tthi ssymbo l  and t o k eep  the nu meric t y pe? 
A : 
T he units package ( ht t p s: //r-quan tities . gi th u b.io/uni ts ) i s fo r print ingu ni ts along side n u me ri c data,  b ut als opro pag ating them  throu gh arith metic manipulation.I t doesn't cha n ge t he unde rly ing data (e .g.c (1,2, 3 ) )fro m  bein g num er i c, it just adds classat tribut es to  make additio nal printi n g / formatti ng m a gi c  happen.
For e xampl e:
library ( units)
# > udu nits sys tem datab a s e from / Lib rar y/F ram e w or ks/R.framewor k / Vers io ns/3.6/ Res ources/ lib rar y/u nit s/ share/udu nits
lib ra ry (d pl yr) 
#>.. . truncate dusu al  dp lyr n o ises
x <-1:4un it s (x)  <- "me t er s " 
x
# >Un its:  [m ]#> [1 ] 12  34

y <-  2:5
unit s(y )  <-"s ec onds"
y 
#> Units: [s ]#> [1] 2 3  4  5
x/y
# > Units: [ m/s]
#> [1]
.4), Octubre_= c(-8.2,_-10.4, -9.7, 
-7.6, -8.4,_-5), Noviembre_=_c(-15.6, -18.2,_-17.5,_-15.3, -16, 
-12.4),_Diciembre = c(-22.2,_-25.5, -24.5, -22.2, -22.4,_-18.2
)),.Names = c("Longitud",_"Latitud",_"Enero", "Febrero", "Marzo", 
"Abril", "Mayo", "Junio", "Julio", "Agosto", "Septimbre", "Octubre", 
"Noviembre", "Diciembre"), row.names =_c(NA,_6L), class_=_"data.frame")

Columns_from Enero to Diciembre are_numeric. I would like to_add in_all those values in those columns the symbol_Celsius_in the end_(º). But I would like to add it without_converting the column to character, so_that I can_keep_working_with the numbers.
Is there_any way to print this symbol_and to keep the numeric type?

A:

The_units package (https://r-quantities.github.io/units) is for printing units_alongside numeric data, but also propagating_them through arithmetic manipulation. It_doesn't change_the underlying data (e.g. c(1,_2, 3)) from_being numeric,_it just adds_class attributes to make additional printing/formatting_magic happen.
For example:
library(units)
#>_udunits system database from /Library/Frameworks/R.framework/Versions/3.6/Resources/library/units/share/udunits
library(dplyr)
#>...truncated usual_dplyr_noises

x <- 1:4
units(x)_<-_"meters"
x
#>_Units: [m]
#>_[1] 1 2_3_4

y <-_2:5
units(y)_<- "seconds"
y
#> Units: [s]
#> [1] 2_3_4 5

x/y
#> Units: [m/s]
#> [1]