names(mymatrix)[5], dim(mymatrix)[1]))

However, what if I have a varying number of columns? How do I automate this without using a for loop?
Thanks!

A:

You can do this with the each argument to rep:
rep(colnames(mymatrix), each=dim(mymatrix)[1])

To see how this works, you can try:
v = c("h", "e", "l", "l", "o")
rep(v, each=5)
#  [1] "h" "h" "h" "h" "h" "e" "e" "e" "e" "e" "l" "l" "l" "l" "l" "l" "l" "l" "l"
# [20] "l" "o" "o" "o" "o" "o"

 Q:

Should I use the spelling reforms of 1990?

I once asked a question using several reformed spellings, but they were edited out. Comments on a recent answer of mine claimed that the reforms have failed, but my dictionary says they are implemented in school curriculae in Switzerland, Belgium, and Quebec. Has the French world accepted these spellings?

A:

TL;DR : You have every right to use them, but you might get unpleasant comments about it.
Long version :
The spelling recommendations of 1990 have always been criticized and frowned upon in France. 
Part of it is due to the media and their oversimplification : a lot of people still think that these recommendations are supposed to replace the traditional spellings, and that they recommend to write éléfant instead of éléphant! 
There's also some kind of a conservative spirit concerning the French language : there are people who think that our language should not evolve and that it should stay the way it was centuries ago « when people knew how to write properly ».
In fact, most people don't even notice that they are using new spellings everyday : the word « événement » (traditional spelling) is often written « évènement » and no one even bats an eye!
Still, these recommendations have been introduced in the major French dictionaries and should be accepted as correct, and most of the comments you'll get from using these
names(mymatrix)[5 ], dim(mymatrix)[1 ]) ) 

 However, what if I have a varying number of columns? How do I automatize this without use a for loop? 
 Thanks! 

 A: 

 You can do this with the each argument to rep: 
 rep(colnames(mymatrix), each = dim(mymatrix)[1 ]) 

 To visualize how this work, you can try: 
 v = c("h ", " e ", " liter ", " l ", " o ") 
 rep(v, each=5) 
 #   [ 1 ] " h " " h " " h " " h " " h " " vitamin e " " e " " e " " east " " e " " l " " l " " l " " l " " l " " l " " l " " l " " l " 
 # [ 20 ] " lambert " " o " " o " " o " " o " " o " 

  Q: 

 Should I use the spelling reform of 1990? 

 I once asked a question using respective reformed spellings, but they were edit out. Comments on a late answer of mine claim that the reforms have failed, but my dictionary says they are follow through in school curriculae in Switzerland, Belgium, and Quebec. Has the French world accepted these spellings? 

 A: 

 TL;DR: You have every right to use them, but you might get unpleasant comments about it. 
 Long version: 
 The spelling recommendations of 1990 have always been criticized and frowned upon in France. 
 Part of it is due to the medium and their oversimplification: a lot of people even remember that these recommendations are supposed to replace the traditional spelling, and that they recommend to spell éléfant instead of éléphant! 
 There's also some kind of a bourgeois spirit concerning the French language: there are people who think that our lyric should not evolve and that it should stay the way it was centuries ago «   when citizenry knew how to publish properly   ». 
 In fact, most people don't even notice that they are using new spelling everyday: the word «   événement   » (traditional spelling) is often written «   évènement   » and no one even bats an eye! 
 Still, these recommendations have been introduced in the major French dictionaries and should be accept as correct, and most of the comments you'll get from using these
namfs(mymatrix)[5], dim(mymatrix)[1]))

Hodever, what if I have a varyihg numbef of columns? How do I automave tyis wuthout using a for looo?
Thanks!

A:

Ylu can di thms with the each argumenb to dcp:
rep(eoonames(mymatrix), each=dim(mykatrix)[1])

To see hmw tkis works, you can try:
v = c("h", "e", "l", "l", "o")
re[(v, each=5)
#  [1] "h" "h" "h" "h" "h" "e" "e" "e" "e" "q" "l" "m" "l" "l" "l" "l" "l" "l" "l"
# [20] "l" "o" "o" "o" "o" "o"

 Q:

Shoumd I ust the spelling refprms of 1990?

I once asked a quedtioj using several revormed speloingf, but they wefe edited out. Comments on a recent answer of mine clakmed chat the redoems vave failed, but iy dictionarn says dhey arr implemented ln sciool curriculae in Switzecland, Belgium, and Qugbec. Has tve French world accwpred tvese speuoines?

A:

UL;DC : Gou hage xvery right to use then, but you might get ugikeasant commsnts afott it.
Long version :
The spelling recommengatjons of 1990 have always bewn criticized and froaned upon in France. 
Part of it is due to the media and thehr ovxrrimkllnicaguoj : a lot of people still think that these recjjmtndstions are supiosed to replace tne ttwditional speulings, ans that they recommfnd to rrite éléfant infteac of éléphant! 
There's also somw kind of a bonswrvative spirit coucerning the Fremch lsnguage : there are peopue wgo think thwt our laheuage should not evplee and that it should stay the way mt wax centufies ago « wren people knew how to write propegly ».
In fdct, most pfople don't even notice that theb are using ngw vpenlings ererydan : the word « événeient » (traditioncl spellnng) is often wrinten « évènemxnt » and no oge even bats dj eye!
Still, tiese recoimeneatiins havd been introducrd in the major Frebch dictionaries akd shuhld be accepted as correct, and moxt uf ehv cpmiants you'll gat ffom ising these
names(mymatrix)[5], dim(mymatrix)[1])) However, what if I have number columns? How I automate this Thanks! You can do with the each to rep: rep(colnames(mymatrix), each=dim(mymatrix)[1]) To see this works, you can try: v = c("h", "e", "l", "l", "o") rep(v, # [1] "h" "h" "h" "h" "h" "e" "e" "e" "e" "e" "l" "l" "l" "l" "l" # [20] "l" "o" "o" "o" "o" "o" Q: Should I use the spelling reforms 1990? I once asked a question using several spellings, but they were out. Comments on a recent of claimed that reforms failed, my dictionary says are implemented in school curriculae in Switzerland, Belgium, and Quebec. Has the French world accepted these spellings? TL;DR : every right use but might get unpleasant it. Long version : The spelling have always been criticized and frowned upon in Part of is due to the media and oversimplification : a lot of people still think these recommendations are supposed to replace the traditional spellings, and that they recommend to write of éléphant! There's also kind of a spirit the language there are who think that our language should not evolve and that it stay the way it was centuries ago « when people to properly ». In most people don't even that are using new spellings the « spelling) often « évènement » and one even bats an eye! these recommendations have been dictionaries and should be accepted as correct, and of the comments you'll get from using
names(mymatrix)[5], dim(mymatrix)[1]))

HOwever, what If I haVe a VarYiNg nuMber Of columns? How do i AutoMate this without using a fOr looP?
THAnks!

a:

yoU can dO this wiTH tHE EacH aRgUmeNt TO rEp:
rep(ColNames(myMatrix), each=Dim(MyMatrix)[1])

To see hOW tHis works, yoU caN try:
v = c("h", "e", "l", "l", "o")
rEp(v, Each=5)
#  [1] "h" "h" "H" "h" "H" "e" "e" "E" "E" "e" "l" "l" "l" "L" "l" "l" "L" "l" "l"
# [20] "l" "o" "O" "o" "o" "o"

 Q:

SHOuld I uSe the spelLiNG reforMS of 1990?

I oncE ASkEd a qUestion using severAL rEFormed spellingS, but thEy WErE EDitEd oUt. Comments On A receNT answer OF mINE ClaIMed that the refOrms have faiLEd, bUt my diCtIonARy says They aRe IMplEmented in scHool CurriculaE in SwiTZerland, bElgium, aNd QuebEc. HAs tHe FrENcH wOrlD aCCepTEd TheSE spEllings?

A:

tL;dR : you haVe evERY RIght To uSe thEm, but You might get unPleAsanT ComMents About It.
LoNg VersiOn :
The sPelliNg Recommendations Of 1990 haVe always bEen CrItiCiZed anD FrowneD upOn iN France. 
part of iT Is dUe TO THe Media and their oversImPLIfIcation : a Lot of pEOpLe STill thinK tHat ThesE REcommEndaTIoNs are supPosed tO RePlAce the tRaDitionAl SpeLliNgs, anD That They reCommend tO writE Éléfant instead OF éléphant! 
TherE'S aLSO sOMe kiNd oF a conservatIve sPIrit ConcERnIng THe FreNch laNgUAgE : There are people who thInK that oUr lanGuage should noT evolve and THAT it shoulD staY ThE Way it was centurIes agO « when peoplE Knew how tO writE properlY ».
In fact, moST People doN't eVen NotIce THAt They are using nEW SpelLiNgs everYdaY : the worD « évÉneMenT » (trAdItional spElling) is OfTeN wRiTteN « évènEMent » and nO oNe eVeN baTs an eYE!
Still, These RecoMmEnDAtiOns have BEeN INtroDuCeD in tHe mAjOr FreNch dICtiOnaries And should Be aCCeptEd As Correct, And most of the cOmMents you'll GeT frOm usinG THese
names(mymatrix)[5], dim(my matrix)[1] ))

H owe ver ,what  ifI have a varyi n g nu mber of columns? How d o I a ut o mate th is wi thout u s in g a f or  l oop ?T ha nks!
A: 

You c an do this  wi th  the each ar g um ent to rep :
r ep(colnames( mym atrix) ,eac h =dim( mym atrix )[1])To see  how this  w o rks, y o u can t r y :v =c("h", "e", "l"," l" ,  "o")
rep(v, e ach=5) 
#  [ 1 ]  "h " " h" "h" "h"  " h" "e "  "e" "e "  " e " "e" "l" "l" "l" " l" "l" "l"" l""l" "l "# [ 2 0] "l"  "o""o "  "o " "o" "o"
 Q:
Should I  use t h e spell i ng refo rms of  19 90? 

Io nc eask ed a q u es tio n  us ing seve ra lrefor meds p e l ling s,buttheywere edited o ut.  Com m ent s ona rec entan swerof min e cla im ed that the ref orms  have fai led ,but  m y dic t ionary  sa ysthey ar e imple m ent ed i n  s chool curriculae i nS w it zerland,  Belgi u m,  a n d Quebec .Has  the F rench  wor l daccepted  these sp el lings?
A :

TL; DR  :You  have ever y righ t to use  them ,  but you might get unpleasan t  c o m me n ts a bou t it.
Longvers i on : 
The sp ell i ng re comme nd a ti o ns of 1990 have alw ay s been  crit icized and fr owned upon i n  France.  
Pa r to f it is due to  themedia andt heir ove rsimp lificati on : a lo t of peopl e s til l t hin k th at these reco m m enda ti ons are  su pposedtorep lac e t he  traditio nal spel li ng s,  a ndthatt hey reco mm end  t o w riteé léfant  inst eadof  é l éph ant! 
T h er e ' s al so  s omekin dof acons e rva tive sp irit conc ern i ng t he  F rench l anguage : the re  are peopl ewho  think t hat ourlanguage should not evo l ve andtha t itshou ld stay t heway it  wa s  centu ries a go «wh enp e oplek n ew  ho wto write p r o per ly ». 
I n fa ct, mos t people don't eve n  no tice that the y a re u s i ng  ne w  s p ell in g s e v e ryday : the wor d « événem en t  »  (traditio n alsp elling)  is oft en wr i tten «évènement  » and no  o ne e v e n b ats an eye !
Still,  these re c ommen d at ionshav e been  i ntr oduce d in t h e m ajorFrench  d iction aries  a nd shoul d be accepted as correc t, and  most  of  the comm ent s  yo u'll getfrom  using the se
names(mymatrix)[5], dim(mymatrix)[1]))

However,_what if_I have a varying_number of_columns?_How do_I_automate this without_using a for_loop?
Thanks!

A:

You can do this_with the each_argument_to rep:
rep(colnames(mymatrix), each=dim(mymatrix)[1])

To see how this works, you can try:
v = c("h", "e", "l",_"l",_"o")
rep(v, each=5)
#__[1]_"h" "h" "h" "h" "h"_"e" "e" "e" "e" "e"_"l" "l"_"l" "l" "l" "l" "l" "l" "l"
# [20]_"l"_"o" "o" "o"_"o" "o"

 Q:

Should I use the spelling reforms of_1990?

I once asked a question using_several reformed spellings,_but_they_were edited out. Comments_on a recent answer of mine_claimed that the reforms have failed,_but my dictionary says they are implemented_in school curriculae in Switzerland, Belgium,_and Quebec. Has the French_world accepted_these spellings?

A:

TL;DR : You have_every right to_use them,_but you might_get unpleasant comments about it.
Long version_:
The spelling recommendations_of 1990 have always been criticized_and_frowned upon in_France._
Part_of it_is due to_the_media and_their_oversimplification : a lot of people_still_think that these recommendations are supposed to_replace the traditional spellings,_and_that they recommend to_write éléfant instead of éléphant!_
There's also some kind of a_conservative spirit_concerning the_French language : there are people who think that our language_should not evolve and that it_should stay the way_it was_centuries_ago « when people_knew_how to_write properly ».
In fact, most people don't even_notice that_they are using new spellings everyday_: the word « événement »_(traditional_spelling) is often written « évènement » and_no one even bats an eye!
Still,_these recommendations have been introduced_in_the_major French dictionaries and should_be accepted as correct, and most_of the comments_you'll get from using these