StatisticsGlobe,

How to Confuse an R Programmer!

How to confuse a programmer in the R programming language. Why does this happen when you extract only one column from your data frame?

#rstats #rstudio #datamanipulation #coding

video/mp4

jonocarroll,
@jonocarroll@fosstodon.org avatar

@StatisticsGlobe it's definitely a bug-magnet, but how often do you select a single column of values and want a 1-column data.frame?

In case the confusion is genuine - the drop = FALSE argument prevents this behaviour.

Cmastication,
@Cmastication@mastodon.social avatar

@jonocarroll @StatisticsGlobe fwiw, pandas does the same sort of thing and it drives folks bonkers there too. It’s surprising.

StatisticsGlobe,

@Cmastication @jonocarroll thanks for sharing this info, I didn't know this.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • Durango
  • magazineikmin
  • mdbf
  • thenastyranch
  • khanakhh
  • rosin
  • Youngstown
  • ethstaker
  • slotface
  • modclub
  • kavyap
  • DreamBathrooms
  • everett
  • ngwrru68w68
  • JUstTest
  • InstantRegret
  • tacticalgear
  • GTA5RPClips
  • cubers
  • normalnudes
  • osvaldo12
  • tester
  • anitta
  • cisconetworking
  • megavids
  • Leos
  • provamag3
  • lostlight
  • All magazines