100 album r&b hàng đầu năm 2022

Pioneer Photo Albums, Inc.

Pioneer is one of the largest U.S. sources of photo albums and memory scrapbooks offering over 300 different styles. Pioneer offers photo albums and memory scrapbooks for most popular size photos and enlargements in trend setting cover designs and classic solids. Both refillable and non-refillable styles are available in 3-ring, screw post, book bound, spiral bound, flip-up and heat set. Pioneer also carries Advanced Photo System products, wedding and baby albums, photo/video boxes, photo corners, sticker mounts, glue sticks, double-sided tape, caption stickers, gel ink pens, scissors, templates, address books, diaries, and travel diaries.

Show

100 Fiona Apple

The Idler Wheel Is Wiser Than the Driver of the Screw and Whipping Cords Will Serve You More Than Ropes Will Ever Do (2012)

Seven years after her previous album, Apple’s return sidelined her orchestral trademarks for an austere, homespun sound that exposed her insular lyrics even more starkly. Listen to the album.

99 Rihanna

Anti- (2016)

The first album album from an artist whose records had previously propped up killer singles with passable fillers turned her disaffection and disappointment into generational anthems. Listen to the album.

98 Rokia Traoré

Tchamantché (2008)

The Malian guitarist set a new career benchmark with this intimate set, adding classical western harp and African ngoni to her subtle, bluesy electric guitar. Listen to the album.

97 Róisín Murphy

Ruby Blue (2005)

Trip-hop duo Moloko was dead, and Murphy teamed up with Matthew Herbert for this eclectic, saucy – and still underrated – pop record that anticipated the arrival of Lady Gaga by three years. Listen to the album.

96 Missy Elliott

Miss E … So Addictive (2001)

Drawing from house, psychedelia and even Bollywood soundtracks, Missy’s third – the one responsible for Get Ur Freak On – forced pop to catch up with her yet again. Listen to the album.

95 Charli XCX

Pop 2 (2017)

XCX stopped waiting around for mainstream acceptance and showed the normies what they were missing with this bracingly eclectic, guest-laden mixtape. Listen to the album.

100 album r&b hàng đầu năm 2022

Titillating … Peaches. Photograph: Murdo Macleod/The Guardian

94 Peaches

The Teaches of Peaches (2000)

Merrill Nisker grafted sweaty, human filth on to the clean machine shock of electroclash on her hilarious, titillating debut as Peaches. Listen to the album.

93 Low

Things We Lost in the Fire (2001)

Filled with crushing, funereal dirges and a song about wanting to encase a newborn baby in metal to prevent its growth, the Duluth group’s fifth album was nonetheless inexplicably beautiful. Listen to the album.

92 Erykah Badu

New Amerykah Part One (4th World War) (2008)

Part state-of-the-nation opus, part eye-opening trawl through the unexplored depths of Badu’s brain. Listen to the album.

91 Ali Farka Touré and Toumani Diabaté

In the Heart of the Moon (2005)

Two Malian greats met for this soothing, spontaneous record of guitar and kora that is as subtly textured as it is generous. Listen to the album.

90 Katy B

On a Mission (2011)

No disposable vocalist or featured artist, the charismatic, club-savvy south Londoner gave dubstep its first real star. Listen to the album.

Taylor Swift – Blank Space

89 Taylor Swift

1989 (2014)

Swift’s first “officially documented pop album” saw her shake off any remaining country trappings to become a gleaming synthpop behemoth. Listen to the album.

88 Fleet Foxes

Fleet Foxes (2008)

The Seattle group’s debut heralded a generation’s post-recession retreat into rural comforts, conjuring a pastoral idyll from the best of west coast folk and British traditionalism. Listen to the album.

100 album r&b hàng đầu năm 2022

Breakout … Justin Timberlake. Photograph: Startraks Photo/Rex Features

87 Justin Timberlake

Justified (2002)

The finest boyband breakout since Robbie Williams’s Life Thru a Lens, and that’s not damning with faint praise: Timberlake’s Neptunes/Timbaland-helmed debut was slick, sexy and most importantly, convincing. Listen to the album.

86 Elliott Smith

Figure 8 (2000)

Smith’s final album followed his brief adoption by Hollywood, and added a cinematic grandeur to his work – but, thankfully, it didn’t swamp his haunted songwriting. Listen to the album.

85 Chromatics

Kill for Love (2012)

The album that ushered in the moody, neon-lit synthpop that would define the rest of the decade, Ruth Radelet playing Nico to Johnny Jewel’s Velvet Underground-worthy cool. Listen to the album.

84 Konono No 1

Congotronics (2004)

Twenty-five years after forming, the Congolese group made their name with this rhythmic explosion of likembes (thumb pianos) put through junkyard amplification. Listen to the album.

100 album r&b hàng đầu năm 2022

Unsettling … Nick Cave and the Bad Seeds. Photograph: Steve Parke

83 Nick Cave and the Bad Seeds

Skeleton Tree (2016)

Written before the death of one of Cave’s teenage sons – not after it, as was often assumed – Skeleton Tree nonetheless cast Cave’s recurring themes in unsettlingly anaesthetised new light.Listen to the album.

82 Yo La Tengo

And Then Nothing Turned Itself Inside-Out (2000)

The album that every hushed, autumnal indie record aspires to be, a cocoon of disaffection. Listen to the album.

81 Madvillain

Madvillainy (2004)

Madlib and MF Doom combined for an album that rattled with enough innovation and enough bars to prop up 10 records. Listen to the album.

80 Lady Gaga

The Fame (2008)

The provocative pop debut that made pastiche into an art form and revelled in the artifice and ambition of fame. Listen to the album.

100 album r&b hàng đầu năm 2022

Sharp … Kanye West. Photograph: Jamie-James Medina/Observer

79 Kanye West

Late Registration (2005)

West justified his arrogance by setting it alongside sharp political commentary (at a time when few of his peers were speaking up) and fiercely arresting production. Listen to the album.

78 Drake

Take Care (2011)

Despite an outstanding lineup of guests and producers, all eyes were on Drake’s journey into and out of heartbreak, variously bitter, angry and doe-eyed. Listen to the album.

77 The Bug

London Zoo (2008)

Kevin Martin’s discordant and seductive second, voicing his discontent via an array of guest MCs. Listen to the album.

76 Wild Beasts

Two Dancers (2009)

Wild Beasts were a sad casualty of the last decade, but Two Dancers found the Cumbrian lads at their prime, bringing Chaucerian ribaldry to football terrace hooks. Listen to the album.

75 MIA

Kala (2007)

A multicultural celebration, a political statement and a middle finger up to misogynists. Listen to the album.

100 album r&b hàng đầu năm 2022

Deep craft … Salif Keita. Photograph: Redferns

74 Salif Keita

Moffou (2002)

The Malian artist made his best album at the age of 53, his playing and duets with female singers conveying a sense of spontaneity that belied his deep craft. Listen to the album.

73 Clipse

Hell Hath No Fury (2007)

A biting subversion of the era’s cocaine rap, evident in the despairing lyrics and magnetically ruined textures. Listen to the album.

72 Lily Allen

Alright, Still (2006)

The voice of a generation: pissed, pissed off and funny, Allen’s debut brought a welcome reality check to a sheeny era of pop. Listen to the album.

71 John Grant

Queen of Denmark (2010)

Midlake backed the former Czars frontman on this remarkable return to form following a period of heartbreak, addiction and depression. Listen to the album.

70 Lana Del Rey

Born to Die (2012)

Thought shaky at the time, her controversial debut – the one responsible for Video Games – has since acquired cult status. Listen to the album.

100 album r&b hàng đầu năm 2022

Diverse … Vampire Weekend. Photograph: Publicity image from music company

69 Vampire Weekend

Vampire Weekend (2008)

Single A-Punk masked a hugely diverse album: a strange yet winning mix of flutes, strings and Afrobeat. Listen to the album.

68 The National

Boxer (2007)

The moment they made the transition from white-collar worriers to rarefied indie giants: the elegiac Boxer is as much of a New York totem as Is This It or Interpol’s debut. Listen to the album.

67 Eminem

The Marshall Mathers LP (2000)

Eminem’s third album has dated horribly with its homophobia and gleeful suggestion of violence against women, but in other parts of the album the incisiveness with which he unspools his misanthropic take on life remains transgressively vital. Listen to the album.

100 album r&b hàng đầu năm 2022

Pedigree … Alicia Keys. Photograph: Jim Cooper/AP

66 Alicia Keys

Songs in A Minor (2001)

Pristine neo-soul played by an old soul in a 19-year-old’s body. On her debut, Keys was a traditionalist steeped in pedigree, but not so schooled that it stifled her vulnerability. Listen to the album.

65 Primal Scream

XTRMNTR (2000)

Loaded, but only in the sense that XTRMNTR suggested heavy artillery locked and ready to fire: few good times here. Listen to the album.

Kelis – Milkshake

64 Kelis

Tasty (2003)

Lascivious, soulful and compellingly weird, Kelis was ahead of her time – though it’s still thrilling to remember that the extremely unsubtle Milkshake was a No 2 hit. Listen to the album.

63 Jay-Z

The Black Album (2003)

Supposedly Jay-Z’s last album before a retirement that never arrived, The Black Album was the apotheosis of the rapper’s self-mythologising, establishing him as an old-school classicist and innovator. Listen to the album.

62 The Knife

Silent Shout (2006)

Gothic and abrasive in equal parts, the Swedish brother-sister duo’s third album offered ceaseless electronic invention at a time when their synth-minded peers were content to till their way through music history’s trash. Listen to the album.

61 Kanye West

The College Dropout (2004)

Infectious ego, unknockable confidence and hysterical commentary: a relic from lighter days that did not foresee West’s extraordinary evolution. Listen to the album.

60 Jens Lekman

Night Falls Over Kortedala (2007)

Matching Jonathan Richman for wry, detail-heavy storytelling and Sufjan Stevens for orchestral whimsy, Lekman elevated romantic mishaps in his Gothenburg home town to cinematic proportions. Listen to the album.

100 album r&b hàng đầu năm 2022

Uncontainable … Janelle Monáe. Photograph: Gary Wolstenholme/Redferns via Getty Images

59 Janelle Monáe

The ArchAndroid (2010)

A bracing introduction to an uncontainable ambition: Monáe’s intergalactic debut proper straddled James Brown funk, pastoral whimsy and indie quirk, and later albums proved this was barely a fraction of her talents. Listen to the album.

58 J Dilla

Donuts (2006)

This masterpiece in turning samples and meticulous tinkering into an era-defining production statement was released the week of the rapper’s death. Listen to the album.

57 Amy Winehouse

Frank (2003)

Winehouse at her most innocent – if you could ever call her that, given the cheekiness of songs like Fuck Me Pumps. Listen to the album.

56 Cannibal Ox

The Cold Vein (2001)

Mixing chilling realism with devastating metaphor, Vordul Mega and Vast Aire painted a grim, dystopian vision of their native New York City. Listen to the album.

100 album r&b hàng đầu năm 2022

Reveries … St Vincent. Photograph: Gus Stewart/Redferns

55 St Vincent

Strange Mercy (2011)

Sex, sedition and Marilyn Monroe reveries fuelled Annie Clark’s third album, which slipped serrated blades through the barbiturate wooze. Listen to the album.

54The War on DrugsLost in the Dream (2014)

The Springsteen comparisons were fair: not since the Boss had music sounded so good driving along an empty highway. Listen to the album.

53 St VincentSt Vincent (2014)

Whether shaking your ass to Digital Witness or drifting off with Prince Johnny, you did so under a constant cloudburst of ideas. Listen to the album.

100 album r&b hàng đầu năm 2022

NERD

52 NERDIn Search of… (2001)

Pharrell at his horniest ever – Truth or Dare hints at an orgy before Tape You records the sounds of one – but Bobby James is one of his loveliest ballads. Listen to the album.

51 The MicrophonesThe Glow Pt 2 (2001)

Overlapping acoustic guitars blend like plumes of smoke, and inspired snatches of melody flit by – but bursts of noise and distortion herald danger deep in the woods. Listen to the album.

50 InterpolTurn on the Bright Lights (2002)

Theirs was the New York of Taxi Driver or Midnight Cowboy: fraught with rain and danger, energy crackling like the wires of a vandalised phone box. Like their peers the Strokes, the quartet made rhythm guitar the lead and foregrounded the bass, but cast them in sombre black suits rather than artfully distressed denim. Their ballad NYC became an unofficial civic anthem, synthesising the mix of sorrow and tenacity that defined the city in the wake of 9/11. Listen to the album.

49 D’AngeloBlack Messiah (2014)

After D’Angelo’s years in the wilderness, struggling with addiction and indirection, many thought he was finished. He not only came back, but did so with one of the most incendiary soul records in decades. The funk deepened – the way Prayer smears its on-beat is astonishing – along with his social conscience on The Charade, though the bedroom door still beckoned constantly. Listen to the album.

The White Stripes: Seven Nation Army.

48 The White StripesElephant (2003)

It’s now impossible to imagine a world without Seven Nation Army, chanted from football terraces to political rallies. The band’s biggest hit set the template for Elephant: brooding moods, measured out in eighths by Meg White, would tip over into cathartic squalls of blues rock. Jack White’s much-lampooned fetish for analogue production is legitimate – you can almost feel the breeze from the amps on your face as the riffs strut out – and he squeezed more tone out of the electric guitar than almost anyone else that decade. Listen to the album.

47 Sleater-KinneyThe Woods (2005)

The trio had always sounded – appealingly – like a band rehearsing in a garage, but here they threatened to blow its door open and its walls apart. Like a superhero who doesn’t realise their own strength, everything hits too hard, burning the edges of the guitars and drums with fuzz. Their most ferocious album, then, though the wry and bitter ballad Modern Girl uses the distortion to prettier ends. Listen to the album.

46 GrimesArt Angels (2015)

A massive leap in ambition as the synthpop of Visions was pulled into HD, driven up a gear and transformed into pop-punk as thrillingly fast and trashy as a Nascar race. Tracks such as Kill V Maim were made for the balls of your feet, full of the chillingly cutesy pep of east Asian pop, but the best tracks were the robo-funky World Princess Part II and the demo version of Realiti: the sound of speeding through a city, its sounds muffled inside a luxury sedan. Listen to the album.

45 PortisheadThird (2008)

Released more than 10 years since their pair of trip-hop-defining albums, Third proved the west country trio still had it – it being their particular mood of bruised, bloodied tenacity in a world that wasn’t just uncaring, but actively violent. While they tease out the Morricone influence all the more, the highs are all their own – krautrock nightmare We Carry On; cyberpunk masterwork Machine Gun – on a record that has become one of the most influential of its era. Listen to the album.

44 Vampire WeekendModern Vampires of the City (2013)

A relatively bummer record as the polo-shirted princes of prep entered an early midlife crisis: “Wisdom’s a gift but you’d trade it for youth,” Ezra Koenig sings at one point. But that wisdom, an upgrade from the mere cleverness of their earlier work, led to their most rounded songwriting yet, still gassed up with the fizz of old. Listen to the album.

100 album r&b hàng đầu năm 2022

Lip-smacking … Kendrick Lamar. Photograph: Amy Harris/Invision/AP

43 Kendrick LamarDamn (2017)

More accessible but no less skilful or hard-hitting than its predecessors, Damn rightly became the first non jazz or classical album to win the Pulitzer prize for music. Kendrick’s brilliance is to swoop between scales – nations, communities and individuals – to create a truly rounded portrait of contemporary love and politics, and the sheer lip-smacking perfection of his flow on Humble made it his biggest track yet. Listen to the album.

42 At the Drive-InRelationship of Command (2000)

A band working in perfect equilibrium, where wild prog and bug-eyed Burroughs-esque visions were tethered by earthy punk. The cracked poetry (“Jigsaw pattern dominoes left a trail / The whites of their eyes / Polaroids of the tale”) was chewed up and then spat out for moshpit soundbites (“Cut away!”, “Is it heavier than air?”), between see-sawing riffs and bursts of pure noise. Listen to the album.

100 album r&b hàng đầu năm 2022

Appeal … Frank Ocean. Photograph: Visionhaus/Corbis via Getty Images

41 Frank OceanNostalgia, Ultra (2011)

That Frank Ocean appears three times in this list is testament to his universal appeal – this mixtape debut opened with a Coldplay cover, and Radiohead, the Eagles and even a sample of Nicole Kidman crop up, too. Released by the Odd Future collective, he and they have done so much in the last decade to break rap and R&B out of tired, restrictive genre considerations. Listen to the album.

40 Antony and the JohnsonsI Am a Bird Now (2005)

With its profile raised by a Mercury prize win, this album was the first time many people had encountered Anohni’s voice, which didn’t so much apply vibrato as become it: a beautiful instrument that instantly entranced. She would go on to embrace electronic pop that confronted the violence – environmental, martial or otherwise – of the anthropocene age. Listen to the album.

39 Britney SpearsBlackout (2007)

Made amid her most troubled phase, Blackout defied the odds to become a diamond pressed from trash. The production is all sleazy, buzzing electro, and Britney’s melodies have the twisted naivety of nursery rhymes. The two big singles are genius: Piece of Me bats back tabloid gossip with a sonic golf club, and Gimme More is her best-ever song, an erotic psychodrama where the purring come-ons of the title also sound like a woman drowning under her ambition. Listen to the album.

100 album r&b hàng đầu năm 2022

Withering … Yeah Yeah Yeahs. Photograph: Publicity image

38 Yeah Yeah YeahsFever to Tell (2003)

For all the hype, the Brooklyn scene of the early 00s didn’t produce many genuine rock stars, but Karen O was its finest. On the group’s debut, she could electrify her withering bluesy scorn with a single yelp, and suddenly she’d be a banshee screaming round the rafters; meanwhile the song Maps was pure vulnerability. Yeah Yeah Yeahs is not just O’s show: like Jack White, the other great guitarist of those years, Nick Zinner could make his axe into bass and lead at all once, and drummer Brian Chase pits tub-thumping toms against seething hi-hats. Listen to the album.

37 Sufjan StevensCarrie & Lowell (2015)

After bulging baroque creations The Age of Adz and The BQE, Stevens pared everything back to soft electronics and fingerpicking for this moving rumination on his stepfather and late mother. He stumbles, numb, through his own poetry, pondering suicide, gaining existential clarity and – crucially – finding beauty: “The breakers in the bar / The neighbour’s greeting.” Listen to the album.

Grimes: Oblivion

36 GrimesVisions (2012)

Tiny, lisping and with a high-pitched voice, Grimes weathered plenty of sexism with her breakthrough – but converted even indie snobs with her take on rave, Italo and industrial synthpop. The electro bass lines are the album’s signature, lurching from the deep, but it is her vocals that make it: a shapeshifting chorus of chattering gothic cheerleaders, solemn choristers and trance divas. Listen to the album.

35 Daft PunkDiscovery (2001)

After keeping their heads down for their brilliant 1997 debut, letting Spike Jonze videos do the talking, Daft Punk revealed themselves – sort of. The duo were obscured behind robot heads, and their music got equally playful: cock-rock guitars, vocoders and brilliantly manipulated slivers of records by ELO, Tavares and Eddie Johns condensed into tinny yet heavy filter-house. Listen to the album.

34 The AvalanchesSince I Left You (2000)

It has the air of a piece of obsessional outsider art: 3,500 samples stitched together into a dense tapestry of goofy hip-hop and lounge pop. Miraculously, it makes a virtue of its maximalism: the title track thick with jasmine and tropical heat, Electricity jumping out of the speakers like a jack in the box. Listen to the album.

100 album r&b hàng đầu năm 2022

Mythic … Bon Iver. Photograph: Anne-Helene Lebrun/Redferns via Getty Images

33 Bon IverFor Emma, Forever Ago (2007)

The backstory is almost a parody of a certain kind of earnest dude: retreating to the woods with just a guitar to get over a breakup and sort out his crappy life. But after listening to the songs he came back down the hill with, the story becomes gilded and mythic: lightly fleshed out with vocal harmonies and drums, they are sensationally beautiful. Listen to the album.

32 MIAArular (2005)

MIA frequently showed just how conservative the US is by doing ordinary things – rapping while pregnant, sticking her middle finger up – that nevertheless had people reaching for the smelling salts. It all began with her debut collection of blown-out rap and dancehall, stitched together with samples from a trolley dash down the unregulated internet – a harbinger of our cosmopolitan post-genre age. Listen to the album.

31 BurialUntrue (2007)

The ghosts of London raves gone by are conjured by this ouija board of a record, where garage vocals flit upward past dust-covered breakbeats. The influence of this and his 2006 debut cannot be overstated, feeding into the dub songcraft of the xx and James Blake, as well as an entire generation of ambient producers. It also anticipated the way London’s clubland – and indeed communities – would be hollowed out by gentrification. Listen to the album.

100 album r&b hàng đầu năm 2022

Heat … Jay-Z performs with The Roots in 2001. Photograph: Scott Gries/Getty Images

30 Jay-Z The Blueprint (2001)

Not only did it launch the career of Kanye West, showcasing his soul-sampling productions alongside those of Just Blaze, this album cemented Jay-Z as one of the greatest to ever do it. His evisceration of Nas on The Takeover made for a firebomb diss track, generating gossipy heat fanned further by some of his biggest pop moments: Girls, Girls, Girls, Izzo (HOVA) and Song Cry. Listen to the album.

29 DeftonesWhite Pony (2000)

By blending the frat-boy energy of nu-metal with the goth moods of Nine Inch Nails and Smashing Pumpkins, the northern Californians united rival factions of brooding teenagers with these strangely sexy studies in tension and release. Chino Moreno’s voice is magnificently plastic – rapping, bellowing, crooning, and deploying his secret weapon: vocal fry that creaks like a door to a haunted house. Listen to the album.

28 AaliyahAaliyah (2001)

This album is lauded for the three masterpieces Aaliyah made with Timbaland – Try Again, More Than a Woman and We Need a Resolution – that lend a serpentine malevolence to her voice, but there are also strong old-school jams and languorous ballads. Lesser R&B stars match their voice to the beat – Aaliyah’s genius, tragically cut short when she was killed in a plane crash, was to slink through it with an almost Latin sense of rhythm. Album not on streaming services.

100 album r&b hàng đầu năm 2022

Sensual … Björk. Photograph: Fabrice Coffrini/AP

27 BjörkVespertine (2001)

The gentle glitches and serene pulses on this intimate, sensual, clean record could sound naive, even simplistic, when put next to the complexity of her recent work with the producer Arca, but Vespertine remains one of Björk’s defining records thanks to the strength of its songwriting. Unison rivals Massive Attack’s Unfinished Sympathy as the great ballad of trip-hop; It’s Not Up to You is almost Disney-esque in its sweeping beauty. Listen to the album.

26 The xxxx (2009)

Romy Madley-Croft and Oliver Sim made the most compelling duets of the period: rather than singing to each other, it was as if two people were going through the same thing without the other knowing it – the perfect mood music for the disconnected interconnection of dating apps and social media. Listen to the album.

25 BeyoncéLemonade (2016)

We’d seen Beyoncé angry before, whether defiant on Survivor or chillingly, wittily calm on Irreplaceable, but never like this. Made after notable incidents of police brutality, Lemonade was charged with real political fervour, while there were numerous sharp jabs at Jay-Z for doing whatever predicated that elevator fight with her sister Solange. As a result, the final call for her ladies to get in formation felt genuinely martial. Listen to the album.

24 David BowieBlackstar (2016)

Released two days before he died, Blackstar saw Bowie pour everything left of him into his best album since his 70s hot streak. He spliced the itchy drum’n’bass and industrial moods that fascinated him in the 90s with terrifically freaky jazz, symphonic balladry and – on Girl Loves Me – authentically heavy rap. “I’m dying to push their backs against the grain / and fool them all again,” he sang. And he did. Listen to the album.

100 album r&b hàng đầu năm 2022

Vivacious … Outkast. Photograph: Tim P. Whitby/Getty Images

23 OutKastSpeakerboxxx / The Love Below (2003)

Although less than the sum of their parts as they were on Stankonia, and with neither editing out the other’s longueurs, the divided members of OutKast nevertheless delivered a vivacious pair of solo turns. Big Boi embraced saucy brass licks and propulsive flow while André 3000 tapdanced through funk, though each arrived at solid gold pop: The Way You Move and Hey Ya! are both deserved wedding disco staples. Listen to the album.

22 Joanna NewsomYs (2006)

Newsom raised some eyebrows, even giggles, with her debut The Milk Eyed Mender thanks to her scrunched, cartoonishly girly voice. But on Ys, this unique instrument – alongside her beautiful harp, and orchestrations by Van Dyke Parks – plays out five masterpieces of American poetry to be filed alongside Whitman or the Beats: songs that move with the untamed direction of wind or water. Listen to the album.

21 PJ Harvey Let England Shake (2011)

Harvey won her first Mercury prize for Stories From the City, Stories From the Sea on 9/11. She won her second for her other masterpiece, released 10 years later, in the shadow of the wars that dragged on between them. There is such anger as she reaches back to the first world war to show how every generation destroys its young in the same way – summed up by the pompous fanfare in The Glorious Land, crushed by a tank of blues-rock. Listen to the album.

20 Arcade FireFuneral (2004)

The deaths of relatives of band members Regine Chassaigne, Richard Reed Parry, and Win and Will Butler underpinned the (mostly) Canadian band’s debut. The songs here are full of the horrible electricity of grief, Win Butler sometimes hollering at the pain, sometimes burned out by it. But the massed choruses suggest relief can be found in family, be it blood or otherwise, marking the arrival of one of the period’s few great arena bands. Listen to the album.

100 album r&b hàng đầu năm 2022

Open-hearted … PJ Harvey. Photograph: Sipa Press / Rex Features

19 PJ Harvey Stories From the City, Stories From the Sea (2000)

More city than sea, PJ Harvey’s most accessible and open-hearted record conjures that feeling of being on a rooftop, wanting to hear every story in the streets below you. It is full of energy, Harvey stalking the gutters and subways; it is full of sex, most of it new and dangerously in flux. But then there are moments on songs such as Beautiful Feeling or Horses in My Dreams, where the mass of bricks and steel dissipates and you’re adrift on the ocean. Listen to the album.

18 Kanye West

Yeezus (2013)

Kanye dived into a hell of racism, commerce, relationship strife and his own ego, with beats made alongside a brains trust of experimental producers. It seethes with trauma both personal and social, and the strongest moments consider how black America is sticking its head in the sand – even Kanye himself, fretting about Kim while a sample of lynching lament Strange Fruit plays. But there are flickers of his old cheeky humour, especially in the immortal line: “Hurry up with my damn croissants!” Listen to the album.

17 OutkastStankonia (2000)

The first rap masterpiece of the century was an epic that covered all of hip-hop’s bases – horndog G-funk on We Luv Deez Hoez and I’ll Call B4 I Cum, raunchy boom-bap on Xplosion, rap-rock on Gasoline Dreams, pop on Ms Jackson – but added endless new flavours: drum’n’bass, acid, psychedelic soul. Listen to the album.

16 Radiohead Kid A (2000)

From the spine-tingling four-note downward melody that opens Everything in Its Right Place, it was clear that Radiohead had taken a huge leap into colder, stranger territory. The electronic influences that had filtered into OK Computer reached maturity – most spectacularly on techno anthem Idioteque – though there are way more guitars than its reputation suggests. Listen to the album.

100 album r&b hàng đầu năm 2022

Master of heartbreak … Robyn. Photograph: Sarah Lee/The Guardian

15 RobynBody Talk (2010)

By blending the earnestness of ballad singing with cascading waves of electropop, Robyn became the master of heartbreak on the dancefloor. There is another side here, too: chatty, puckish and getting over it all. The anchor of the album – initially released in a trailblazing three parts across 2010 – was Dancing on My Own, a breakup song with a wildly transgressive edge: is there a secret erotic thrill behind the pain of going to the club to watch her partner with their new girlfriend? Listen to the album.

14 Kendrick Lamargood kid, m.A.A.d. city (2012)

The breakthrough moment for rap’s greatest ever talent. Loosely based around an LA street narrative, the storytelling was gripping; the bangers banged hard and it has Lamar’s most gorgeous melodies, on Money Trees, Swimming Pools (Drank) and Bitch, Don’t Kill My Vibe. The blithe stoicism of his flow, seemingly resigned to a violent death at any moment, fills the record with poignancy, and transmutes his words into wisdom. Listen to the album.

13 D’AngeloVoodoo (2000)

Bringing in a more rugged hip-hop mood to the neo-soul of his 1995 debut, D’Angelo created a landmark in black American pop. His multitracked harmonies are some of the most beautiful sounds in all of music, and surely at least half of the Americans entering college this year were conceived to Untitled (How Does It Feel). Listen to the album.

12 Frank OceanChannel Orange (2012)

The sun-soaked indolence of being young in LA is etched in aquamarine, purple and, yes, orange on this psychedelic-pop landmark. The melody writing on Forrest Gump, Sweet Life, Thinkin Bout You, Lost and others is joyously accomplished and sturdy, leaving room for 10-minute electro suites, jazz-funk flexing, stoner rap and smoky neo-soul. A generation’s Stevie Wonder had arrived. Listen to the album.

100 album r&b hàng đầu năm 2022

Rollicking and restless … Thom Yorke and Jonny Greenwood of Radiohead. Photograph: Jim Dyson/Getty Images

11 Radiohead In Rainbows (2007)

Initially grabbing headlines for its pay-what-you-want release online, it quickly became clear that this was one of Radiohead’s greatest albums. Undoing some of the knotted tension of the post-Bends era, it has rollicking rockers (Bodysnatchers, Jigsaw Falling into Place) and restless jitters (15 Step, Weird Fishes/Arpeggi), but the core songs are deep, considered trip-hop ballads such as Reckoner, House of Cards and All I Need. Listen to the album.

10 Frank Ocean Blonde (2016)

Less immediately catchy than its predecessor, Channel Orange, Blonde is the more ambitious and visionary record. Resistant to being boxed in any one genre, the percussion retreats, the voice warps, the focus wanders and the emotion deepens as Ocean slips and stumbles through a series of poetic romances. A magical, impossible-to-imitate record. Listen to the album.

9 Beyoncé Beyoncé (2013)

Love and self have always been Beyoncé’s two grand themes, but they were each invested with more passion and nuance than ever before on her fifth solo album. Appearing from nowhere with videos for every track, it announced her as the era’s defining megastar – marketing campaigns, it implied, were for the little people. But the album has endured past its grand entrance thanks to its detailed, impassioned considerations of femininity and marital sexuality. Listen to the album.

8 Arctic Monkeys Whatever People Say I Am, That’s What I’m Not (2006)

He may now sing in an ironic mid-Atlantic croon, but Alex Turner started off with the most tangibly south Yorkshire voice in pop since Jarvis Cocker. Over street-fighting indie rock, he told of dirty dancefloors and scummy men, an observer sitting with his faced pressed up against a taxi window on a Saturday night watching humans bounce off one another. Listen to the album.

7 The Streets Original Pirate Material (2002)

You can almost touch the gold teeth, Valentinos and dreads in Mike Skinner’s debut, a love letter to living for the weekend written in UK garage that heralded the arrival of a brilliant British storyteller – Weak Become Heroes remains the single greatest evocation of being on ecstasy in a club. Listen to the album.

100 album r&b hàng đầu năm 2022

Dizzee Rascal. Photograph: Rex Features

6 Dizzee RascalBoy in da Corner (2003)

If Wiley’s “eski beats” acknowledged grime’s froideur, then Dizzee Rascal turned the temperature down further: his debut is a chillblained study in urban harshness that remains grime’s masterpiece album. Amid videogame clatter, Rascal’s voice is full of scorn and bafflement as he considers girls, rivals and his place in the world. Listen to the album.

5 LCD SoundsystemSound of Silver (2007)

James Murphy’s group were the smart, snippy toast of Brooklyn after the hyper-literate breakthrough tracks Losing My Edge and Yeah. On their second album, they broke through the snark, pondering their identities as New Yorkers, Americans and thirtysomethings – and with a range of potential dance moves, from pogoing to sleek disco shapes. Listen to the album.

4 Kendrick LamarTo Pimp a Butterfly (2015)

Folding in influences from LA’s beat scene – including Kamasi Washington and Flying Lotus – Lamar exploded the possibilities for rap in the 2010s, bouncing like a car down Crenshaw on to neo-soul, jazz and squelchy funk. The police-baiting Alright became a civil-rights anthem for the post-Ferguson era – indeed, as a celebration of the richness of black artistry, the whole album was a riposte to bigotry. Listen to the album.

100 album r&b hàng đầu năm 2022

Kanye West. Photograph: Nousha Salimi/AP

3 Kanye WestMy Beautiful Dark Twisted Fantasy (2010)

He would later lose the thread in a very public fashion, but Kanye West pulled every strand of his genius and torment together on his masterpiece: anthemic choruses, psychodrama lyrics and an all-star cast, from Bon Iver to that Nicki Minaj verse. West’s bombastic production, meanwhile, included samples of everything from King Crimson to Aphex Twin: a symphony to a new, omnivorous digital culture. Listen to the album.

2 The StrokesIs This It? (2001)

After Britpop devolved into bedwetter indie and the US was churning out goofy pop-punk, the debut album by the New York quintet showed rock how to be cool again: all droll, drawling observations and guitar lines that steamed into a dive bar to show up the clientele. Oh, and your boss trying to be trendy by wearing a T-shirt under his blazer at the office on Fridays? Blame these guys. Listen to the album.

100 album r&b hàng đầu năm 2022

Amy Winehouse in 2006. Photograph: Katie Collins/Alamy Stock Photo

1 Amy WinehouseBack to Black (2006)

That title sounds horribly prescient in the wake of the substance misuse that would kill her, but Winehouse was incandescently alive – funny, pissed off, in love – on her finest album. Producer Mark Ronson’s luxuriant backings, which cherrypicked from the previous century of popular music (doo-wop, soul, hip-hop), are saved from mere classiness by that voice: impetuous, inimitable, always reaching for the wrong interval that turns out to be totally right. Read Alexis Petridis’s essay on our No 1 choice here. Listen to the album.

This list was voted for by a panel of 45 Guardian music writers, who ranked their 20 favourite albums from 2000 to 2019 inclusive. Twenty points were allocated for a No 1 choice, down to one point for No 20. These points were totalled up, resulting in the following ranking. A total of 454 different albums were voted for.

R là một trong những ngôn ngữ lập trình phổ biến nhất để thực hiện phân tích thống kê và mô hình dự đoán.Nhiều cuộc khảo sát và nghiên cứu gần đây đã tuyên bố "R" nắm giữ một tỷ lệ phần trăm thị phần tốt trong ngành phân tích.Vai trò của nhà khoa học dữ liệu thường đòi hỏi một ứng cử viên phải biết ngôn ngữ lập trình R/Python.Những người biết ngôn ngữ lập trình R thường được trả nhiều hơn các lập trình viên Python và SAS.Về mặt tiến bộ trong phần mềm R, nó đã cải thiện rất nhiều trong những năm gần đây.Nó hỗ trợ tính toán song song và tích hợp với các công nghệ dữ liệu lớn.

100 album r&b hàng đầu năm 2022
R Câu hỏi và câu trả lời phỏng vấn

Sau đây là danh sách các câu hỏi phỏng vấn lập trình R thường gặp nhất với câu trả lời chi tiết.Nó bao gồm một số câu hỏi cơ bản, nâng cao hoặc khó liên quan đến R. Ngoài ra, nó bao gồm các câu hỏi phỏng vấn liên quan đến khoa học dữ liệu với R.

1. Làm thế nào để xác định kiểu dữ liệu của một đối tượng?

Lớp () được sử dụng để xác định kiểu dữ liệu của một đối tượng.Xem ví dụ dưới đây -is used to determine data type of an object. See the example below -

x
class(x)

Nó trả về yếu tố.

100 album r&b hàng đầu năm 2022
Lớp đối tượng

Để xác định cấu trúc của một đối tượng, sử dụng hàm str ():str() function :

str (x) trả về "yếu tố w/ 5 cấp"


Ví dụ 2:

XX
class(xx)

Nó trả về & nbsp; "data.frame".

str (xx) trả về 'dữ liệu.frame': & nbsp; 5 obs.của & nbsp; 1 biến: $ var1: int returns 'data.frame' : 5 obs. of  1 variable: $ var1: int

2. & nbsp; Hàm sử dụng chế độ () là gì?

Nó trả về chế độ lưu trữ của một đối tượng.

x
mode(x)

Nó trả về yếu tố.numeric.

100 album r&b hàng đầu năm 2022
Lớp đối tượng

x
mode(x)

Nó trả về yếu tố.

Lớp đối tượng

Để xác định cấu trúc của một đối tượng, sử dụng hàm str ():"factor" to store categorical variables. It tells R that a variable is nominal or ordinal by making it a factor.

str (x) trả về "yếu tố w/ 5 cấp"
gender = factor(gender)
gender

Ví dụ 2:

XXtable function is used to calculate the count of each categories of a categorical variable.

Nó trả về & nbsp; "data.frame".
table(gender)

100 album r&b hàng đầu năm 2022
str (xx) trả về 'dữ liệu.frame': & nbsp; 5 obs.của & nbsp; 1 biến: $ var1: int

2. & nbsp; Hàm sử dụng chế độ () là gì?% of values in each group, you can store the result in data frame using data.frame function and the calculate the column percent.

Nó trả về chế độ lưu trữ của một đối tượng.
t$percent= round(t$Freq / sum(t$Freq)*100,2)
100 album r&b hàng đầu năm 2022
Hàm Chế độ trên trả về số.


Hàm chế độ

Nó trả về danh sách.cumsum function is used to calculate the cumulative sum of a categorical variable.

3. Cấu trúc dữ liệu nào được sử dụng để lưu trữ các biến phân loại?
x = table(gender)
cumsum(x)
100 album r&b hàng đầu năm 2022
R có cấu trúc dữ liệu đặc biệt gọi là "yếu tố" để lưu trữ các biến phân loại.Nó nói với r rằng một biến là danh nghĩa hoặc thứ tự bằng cách biến nó thành một yếu tố.

Giới tính = C (1,2,1,2,1,2) Giới tính = Yếu tố (Giới tính) Giới tínhcumulative percentage of values, see the code below :

4. Làm thế nào để kiểm tra phân phối tần số của một biến phân loại?
t$cumfreq = cumsum(t$Freq)
t$cumpercent= round(t$cumfreq / sum(t$Freq)*100,2)
100 album r&b hàng đầu năm 2022
Hàm bảng được sử dụng để tính toán số lượng của từng loại của một biến phân loại.

Giới tính = Factor (C ("M", "F", "F", "M", "F", "F")) Bảng (giới tính)

Đầu rahist function is used to produce the histogram of a variable.

Nếu bạn muốn bao gồm % các giá trị trong mỗi nhóm, bạn có thể lưu trữ kết quả trong khung dữ liệu bằng hàm dữ liệu.Frame và tính toán phần trăm cột.
hist(df, right=FALSE)
100 album r&b hàng đầu năm 2022
t = data.frame (bảng (giới tính)) t $ phần trăm = vòng (t $ freq / sum (t $ freq)*100,2)

Phân phối tần số

5. & NBSP; Cách kiểm tra phân phối tần số tích lũy của biến phân loại
hist(df,  right=FALSE,  col=colors, main="Main Title ", xlab="X-Axis Title")

Hàm CUMSUM được sử dụng để tính tổng tích lũy của một biến phân loại.

Giới tính = Factor (C ("M", "F", "F", "M", "F", "F")) x = Bảng (Giới tính) Cumsum (x)table function and then apply barplot function to produce bar graph

Tổng tích lũy
mydata.count= table(mydata)
barplot(mydata.count)

Nếu bạn muốn xem tỷ lệ phần trăm tích lũy của các giá trị, hãy xem mã bên dưới:

t = data.frame (bảng (giới tính)) t $ cumfreq = cumsum (t $ freq) t $ cumpercent = vòng (t $ cumfreq / sum (t $ freq)*100,2)
barplot(mydata.count, col=colors, main="Main Title ", xlab="X-Axis Title")

100 album r&b hàng đầu năm 2022
Phân phối tần số tích lũy

6. Cách tạo biểu đồ

Hàm Hist được sử dụng để tạo biểu đồ của một biến.table function and then apply pie function to produce pie chart.

df = mẫu (1: 100, 25) hist (df, right = false)
mydata.count= table(mydata)
pie(mydata.count, col=rainbow(12))
100 album r&b hàng đầu năm 2022
Sản xuất biểu đồ với r

Để cải thiện bố cục biểu đồ, bạn có thể sử dụng mã bên dưới

colors = c ("đỏ", "vàng", "xanh", "tím", "cam", "xanh", "hồng", "cyan") hist (df, & nbsp; right = false, & nbsp; col = col = col =Màu sắc, main = "Tiêu đề chính", xlab = "tiêu đề trục X")

x
y <- c(2,3)

7. Cách sản xuất biểu đồ thanh

Đầu tiên tính toán phân phối tần số với chức năng bảng và sau đó áp dụng chức năng Barplot để tạo biểu đồ thanh

100 album r&b hàng đầu năm 2022
mydata = sample (chữ cái [1: 5], 16, thay thế = true) myData.count = bảng (myData) Barplot (myData.Count)

Để cải thiện bố cục của biểu đồ thanh, bạn có thể sử dụng mã bên dưới: It performs multiplication of the first element of vector x i.e. 4 with first element of vector y i.e. 2 and the result is 8. In the second step, it multiplies second element of vector x i.e. 5 with second element of vector b i.e. 3, and the result is 15. In the next step, R multiplies first element of smaller vector (y) with last element of bigger vector x. 

Màu sắc = C ("đỏ", "vàng", "xanh", "tím", "màu cam", "xanh", "hồng", "cyan") Barplot (mydata.count, col = colorTiêu đề ", xlab =" tiêu đề trục x ")

x
y <- c(2,3)
x*y

Biểu đồ thanh với r

10. Các cấu trúc dữ liệu khác nhau R chứa?

R chứa chủ yếu các cấu trúc dữ liệu sau: & nbsp;

  1. Vector
  2. Ma trận
  3. Mảng
  4. Danh sách
  5. Khung dữ liệu
  6. Hệ số

Ba loại dữ liệu đầu tiên (vectơ, ma trận, mảng) là đồng nhất trong hành vi.Nó có nghĩa là tất cả các nội dung phải cùng loại.Các loại dữ liệu thứ tư và thứ năm (danh sách, khung dữ liệu) không đồng nhất trong hành vi.Nó ngụ ý họ cho phép các loại khác nhau.Và kiểu dữ liệu nhân tố được sử dụng để lưu trữ biến phân loại.homogeneous in behavior. It means all contents must be of the same type. The fourth and fifth data types (list, data frame) are heterogeneous in behavior. It implies they allow different types. And the factor data type is used to store categorical variable.

11. Làm thế nào để kết hợp các khung dữ liệu?

Hãy chuẩn bị 2 vectơ để trình diễn:

x = c (1: 5) y = c ("m", "f", "f", "m", "f")
y = c("m","f","f","m","f")

Hàm cbind () được sử dụng để kết hợp khung dữ liệu theo các cột.cbind() function is used to combine data frame by columns.

z = cbind (x, y)

100 album r&b hàng đầu năm 2022
CBIND: Đầu ra

Hàm Rbind () được sử dụng để kết hợp khung dữ liệu theo hàng.rbind() function is used to combine data frame by rows.

100 album r&b hàng đầu năm 2022
RBIND: Đầu ra

Trong khi sử dụng hàm cbind (), đảm bảo số lượng hàng phải bằng cả trong cả hai bộ dữ liệu.Trong khi sử dụng hàm rbind (), đảm bảo cả số và tên của các cột phải giống nhau.Nếu tên của các cột sẽ không giống nhau, dữ liệu sai sẽ được thêm vào các cột hoặc bản ghi có thể bị thiếu.12.Làm thế nào để kết hợp dữ liệu theo hàng khi số lượng cột khác nhau?cbind() function, make sure the number of rows must be equal in both the datasets. While using rbind() function, make sure both the number and names of columns must be same. If names of columns would not be same, wrong data would be appended to columns or records might go missing.

12. How to combine data by rows when different number of columns?

Khi số lượng cột trong bộ dữ liệu không bằng nhau, hàm rbind () không hoạt động để kết hợp dữ liệu theo hàng.Ví dụ: chúng tôi có hai khung dữ liệu DF và DF2.Khung dữ liệu DF có 2 cột và DF2 chỉ có 1 biến.Xem mã bên dưới -rbind() function doesn't work to combine data by rows. For example, we have two data frames df and df2. The data frame df has 2 columns and df2 has only 1 variable. See the code below -

df = data.frame (x = c (1: 4), y = c ("m", "f", "f", "m")) df2 = data.frame (x = c (5: 8))
df2 = data.frame(x = c(5:8))

Hàm bind_rows () từ gói dplyr có thể được sử dụng để kết hợp các khung dữ liệu khi số lượng cột không khớp.bind_rows() function from dplyr package can be used to combine data frames when number of columns do not match.

Thư viện (dplyr) CombDf = bind_rows (df, df2)
combdf = bind_rows(df,df2)

Hướng dẫn: & nbsp; hướng dẫn dplyr với 50 ví dụ13.& nbsp; Tên biến hợp lệ trong r là gì?

13.  What are valid variable names in R?

Tên biến hợp lệ bao gồm các chữ cái, số và các ký tự chấm hoặc gạch chân.Một tên biến có thể bắt đầu bằng một chữ cái hoặc dấu chấm theo sau là ký tự (không phải số).(not number).

Một tên biến như .1var không hợp lệ.Nhưng .var1 là hợp lệ..1var is not valid. But .var1 is valid.

Một tên biến không thể có các từ dành riêng.Các từ dành riêng được liệt kê dưới đây -

Nếu khác lặp lại trong khi chức năng cho trong lần phá tiếp theo đúng null inf nan na_integer_ NA_REAL_ NA_COMPLEX_ NA_CHARACTER_
TRUE FALSE NULL Inf NaN NA NA_integer_ NA_real_ NA_complex_ NA_character_

Một tên biến có thể có tối đa đến 10.000 byte.14.Việc sử dụng các hàm với () và () là gì?Giải pháp thay thế của nó là gì?

14. What is the use of with() and by() functions? What are its alternatives?

Giả sử bạn có khung dữ liệu như hình dưới đây -

df = data.frame (x = c (1: 6), y = c (1,2,4,6,8,12)))

Bạn được yêu cầu thực hiện tính toán này: (x+ y) & nbsp;+ (x-y).Hầu hết các lập trình viên R viết như mã bên dưới -(x+y) + (x-y) . Most of the R programmers write like code below -

(df $ x + df $ y) + (df $ x - df $ y)

Sử dụng hàm (), bạn có thể giới thiệu khung dữ liệu của mình và làm cho mã trên nhỏ gọn và đơn giản hơn-with() function, you can refer your data frame and make the above code compact and simpler-

với (df, (x + y) + (x-y))

Hàm với () tương đương với toán tử ống trong gói dplyr.Xem mã bên dưới -

Thư viện (dplyr) df %> % đột biến ((x + y) + (x-y)))
df %>% mutate((x+y) + (x-y))

bởi () chức năng trong r

Hàm By () tương đương với nhóm theo hàm & nbsp; trong SQL.Nó được sử dụng để thực hiện tính toán theo một yếu tố hoặc một biến phân loại.Trong ví dụ dưới đây, chúng tôi đang tính toán giá trị trung bình của biến var2 bởi một yếu tố var1.group by function in SQL. It is used to perform calculation by a factor or a categorical variable. In the example below, we are computing mean of variable var2 by a factor var1.

df = data.frame (var1 = factor (c (1,2,1,2,1,2)), var2 = c (10:15)) với (df, by (df, var1, function (x) trung bình(x $ var2)))
with(df, by(df, var1, function(x) mean(x$var2)))

Hàm group_by () trong gói DPPLE có thể thực hiện cùng một tác vụ.group_by() function in dply package can perform the same task.

Thư viện (dplyr) df%>% group_by (var1)%>% tóm tắt (trung bình (var2))
df %>% group_by(var1)%>% summarise(mean(var2))

15. Làm thế nào để đổi tên một biến?

Trong ví dụ dưới đây, chúng tôi đang đổi tên biến VAR1 thành Biến1.

df = data.frame (var1 = c (1: 5)) colnames (df) [colnames (df) == 'var1']]]]
colnames(df)[colnames(df) == 'var1'] <- 'variable1'

Hàm đổi tên () trong gói DPPLYR cũng có thể được sử dụng để đổi tên một biến.rename() function in dplyr package can also be used to rename a variable.

Thư viện (dplyr) df = đổi tên (df, biến1 = var1)
df= rename(df, variable1=var1)


16. Việc sử dụng hàm nào () trong r là gì?

Hàm mà () trả về vị trí của các phần tử của một vectơ logic là đúng.Trong ví dụ dưới đây, chúng tôi đang tìm ra số hàng trong đó giá trị tối đa của biến X được ghi lại.which() function returns the position of elements of a logical vector that are TRUE. In the example below, we are figuring out the row number wherein the maximum value of a variable x is recorded.

myData = data.frame (x = c (1,3,10,5,7)) trong đó (myData $ x == max (myData $ x))
which(mydata$x==max(mydata$x))

Nó trả về 3 vì 10 là giá trị tối đa và nó ở hàng thứ 3 trong biến x.

17. Làm thế nào để tính giá trị không bỏ lỡ đầu tiên trong các biến?

Giả sử bạn có ba biến X, Y và Z và bạn cần trích xuất giá trị không bỏ lỡ đầu tiên trong mỗi hàng của các biến này.

data = read.table (text = "x y z na 1 5 3 na 2", tiêu đề = true)
X Y Z
NA 1 5
3 NA 2
", header=TRUE)

Hàm Coalesce () trong gói DPPLYR có thể được sử dụng để hoàn thành nhiệm vụ này.coalesce() function in dplyr package can be used to accomplish this task.

Thư viện (dplyr) dữ liệu %> % đột biến (var = hợp tác (x, y, z)))
data %>% mutate(var=coalesce(X,Y,Z))

100 album r&b hàng đầu năm 2022
Chức năng kết hợp trong r

18. Làm thế nào để tính giá trị tối đa cho các hàng?

Hãy tạo khung dữ liệu mẫu

dt1 = read.table (text = "x y z 7 na 5 2 4 5", tiêu đề = true)
X Y Z
7 NA 5
2 4 5
", header=TRUE)

Với hàm application (), chúng ta có thể yêu cầu r để áp dụng hàng hàm tối đa.NA, RM = true được sử dụng để nói r để bỏ qua các giá trị bị thiếu trong khi tính toán giá trị tối đa.Nếu nó không được sử dụng, nó sẽ trả lại NA.apply() function, we can tell R to apply the max function rowwise. The na,rm = TRUE is used to tell R to ignore missing values while calculating max value. If it is not used, it would return NA.

dt1 $ var = Áp dụng (dt1,1, function (x) max (x, na.rm = true)) & nbsp;

100 album r&b hàng đầu năm 2022
Đầu ra

19. Số lượng số 0 liên tiếp

dt2 = read.table (text = "a b c 8 0 0 6 0 5", tiêu đề = true)
A B C
8 0 0
6 0 5
", header=TRUE)
Áp dụng (dt2,1, function (x) sum (x == 0))

20. Mã sau có hoạt động không?

Ifelse (df $ var1 == na, 0,1)

Nó không hoạt động.Hoạt động logic trên NA trả về NA.Nó không đúng hay sai.

Mã này hoạt động ifelse (is.na (df $ var1), 0,1) 21.Giá trị cuối cùng của X After & NBSP; chạy chương trình sau là gì?ifelse(is.na(df$var1), 0,1)


21. What would be the final value of x after running the following program?

x = 3 nhiều
mult <- function(j)
{
  x = j * 2
  return(x)
}

Mult (2) [1] 4
[1] 4

Trả lời: Giá trị của 'X' sẽ vẫn còn 3. Xem đầu ra được hiển thị trong hình ảnh bên dưới-The value of 'x' will remain 3. See the output shown in the image below-

100 album r&b hàng đầu năm 2022
Đầu ra

Đó là bởi vì x được xác định chức năng bên ngoài.Nếu bạn muốn thay đổi giá trị của X sau khi chạy chức năng, bạn có thể sử dụng chương trình sau:

x = 3 nhiều
mult <- function(j)
{
  x <<- j * 2
  return(x)
}
mult(2)
x

Mult (2) [1] 4

Trả lời: Giá trị của 'X' sẽ vẫn còn 3. Xem đầu ra được hiển thị trong hình ảnh bên dưới-

Đó là bởi vì x được xác định chức năng bên ngoài.Nếu bạn muốn thay đổi giá trị của X sau khi chạy chức năng, bạn có thể sử dụng chương trình sau:

Người vận hành "
a1 = as.numeric(as.character(a))

22. Cách chuyển đổi một biến yếu tố thành số

Hàm As.numeric () trả về một vectơ của các mức độ của yếu tố của bạn chứ không phải các giá trị ban đầu.Do đó, cần phải chuyển đổi một biến yếu tố thành ký tự trước khi chuyển đổi nó thành số.paste() function is used to join two strings. A single space is the default separator between two strings.

một
b = "Bhalla"
paste(a, b)

23. Làm thế nào để kết hợp hai chuỗi?

Hàm dán () được sử dụng để tham gia hai chuỗi.Một không gian duy nhất là bộ phân cách mặc định giữa hai chuỗi.

A = "Deepanshu" B = "Bhalla" Paste (A, B)


Nó trả lại "Deepanshu Bhalla"

Nếu bạn muốn thay đổi bộ phân cách không gian đơn mặc định, bạn có thể thêm sep = "," Từ khóa để bao gồm dấu phẩy làm dấu phân cách.substr(character_vector, starting_position, end_position)

Dán (a, b, sep = ",") trả về "Deepanshu, Bhalla"
substr(x,1,3)

24. Cách trích xuất 3 ký tự đầu tiên từ một từ

Hàm chuỗi con () được sử dụng để trích xuất các chuỗi trong một vectơ ký tự.Cú pháp của hàm chuỗi con là chuỗi con (ký tự_Vector, bearth_poseition, end_poseition)

X = "Axz2016" Subr (X, 1,3)

Chức năng nhân vật giải thích
var
Sandy,Jones
Dave,Jon,Jhonson
", header=TRUE)

25. Cách trích xuất họ từ tên đầy đủ

Tên cuối cùng là chuỗi cuối của tên.Ví dụ, Jhonson là tên cuối cùng của "Dave, Jon, Jhonson".
dt2$var2 = word(dt2$var, -1, sep = ",")


dt2 = read.table (text = "var sandy, jones dave, jon, jhonson", header = true)

Hàm từ () của gói chuỗi được sử dụng để trích xuất hoặc quét từ từ một chuỗi.-1 trong tham số thứ hai & nbsp; biểu thị từ cuối cùng.trimws() function is used to remove leading and trailing spaces.

Thư viện (StringR) dt2 $ var2 = word (dt2 $ var, -1, sep = ",")
trimws(a)

26. Cách loại bỏ không gian hàng đầu và dấu vết

27. How to generate random numbers between 1 and 100

Hàm Trimws () được sử dụng để loại bỏ các không gian dẫn đầu và dấu vết.

A = "David Banes" Trimws (A)


Nó trả lại "David Banes" .27.Cách tạo số ngẫu nhiên từ 1 đến 100

LEFT JOIN implies keeping all rows from the left table (data frame) with the matches rows from the right table. In the merge() function, all.x=TRUE denotes left join.

Hàm runif () được sử dụng để tạo số ngẫu nhiên.
df2=data.frame(ID=c(3,5,7:9), Score2=runif(5,1,100))
comb = merge(df1, df2, by ="ID", all.x = TRUE)

rand = runif (100, min = 1, tối đa = 100)

28.Trong hàm hợp nhất (), all.x = true biểu thị tham gia bên trái.
comb = sqldf('select df1.*, df2.* from df1 left join df2 on df1.ID = df2.ID')

df1 = data.frame (id = c (1: 5), score = runif (5,50,100)) df2 = data.frame (id = c (3,5,7: 9), scoor2 = runif (5,1,100)) Comb = Merge (df1, df2, by = "id", all.x = true)

Tham gia bên trái (kiểu SQL)
comb = left_join(df1, df2, by = "ID")

Thư viện (SQLDF) Comb = SQLDF ('Chọn DF1.*, DF2.* Từ DF1 trái tham gia DF2 trên df1.id = df2.id')

Tham gia bên trái với gói dply & nbsp;

Thư viện (dplyr) Comb = left_join (df1, df2, by = "id")

29. Cách tính toán sản phẩm Cartesian của hai bộ dữ liệu

Sản phẩm của Cartesian ngụ ý sản phẩm chéo của hai bảng (khung dữ liệu).Ví dụ, DF1 có 5 hàng và DF2 có 5 hàng.Bảng kết hợp sẽ chứa 25 hàng (5*5)
comb2 = sqldf('select * from df1 join df2 ')

Comb = Merge (DF1, DF2, BY = NULL)

First, create two sample data frames

Tham gia chéo (Phong cách SQL)
df2=data.frame(ID=c(3,5,7:9), Score=c(52,60:63))

Thư viện (SQLDF) Comb2 = sqldf ('select * từ df1 tham gia df2')
comb = intersect(df1,df2)
30. Các hàng duy nhất phổ biến cho cả hai bộ dữ liệu trước tiên, hãy tạo hai khung dữ liệu mẫu
comb2 = sqldf('select * from df1 intersect select * from df2 ')
100 album r&b hàng đầu năm 2022
df1 = data.frame (id = c (1: 5), scoin = c (50:54)) df2 = data.frame (id = c (3,5,7: 9), scord = c (52,60: 63))

Thư viện (DPPLYR) Comb = Intersect (DF1, DF2)

Thư viện (sqldf) Comb2 = sqldf ('select * từ df1 giao nhau chọn * từ df2')

R Base Method

Đầu ra: giao điểm với r
runif(5555,1,1000)
end.time <- Sys.time()
end.time - start.time

31. Làm thế nào để đo thời gian thực hiện của một chương trình trong r?

Có nhiều cách để đo thời gian chạy của mã.Một số phương pháp được sử dụng thường xuyên được liệt kê dưới đây -R Phương pháp cơ sở
tic()
runif(5555,1,1000)
toc()


thời gian bắt đầu

Với gói Tictocdata.table performs fast data manipulation on large datasets. See the comparison between dplyr and data.table.

Thư viện (Tictoc) tic () Runif (5555,1,1000) toc ()
library(nycflights13)
data(flights)
df = setDT(flights)
# Load required packages
library(tictoc)
library(dplyr)
library(data.table)

32. Gói nào thường được sử dụng để thao tác dữ liệu nhanh trên các bộ dữ liệu lớn?
tic()
df[arr_delay > 30 & dest == "IAH",
   .(avg = mean(arr_delay),
     size = .N),
   by = carrier]
toc()

Dữ liệu gói. Có thể thực hiện thao tác dữ liệu nhanh trên các bộ dữ liệu lớn.Xem so sánh giữa dplyr và data.table.
tic()
flights %>% filter(arr_delay > 30 & dest == "IAH") %>%
  group_by(carrier) %>% summarise(avg = mean(arr_delay), size = n())
toc()


Kết quả: Gói dữ liệu.Table mất 0,04 giây.trong khi gói DPPLYR mất 0,07 giây.Vì vậy, Data.Table là khoảng.Nhanh hơn 40% so với dplyr.Vì bộ dữ liệu được sử dụng trong ví dụ có kích thước trung bình, không có sự khác biệt đáng chú ý giữa hai.Khi kích thước của dữ liệu tăng lên, sự khác biệt của thời gian thực hiện trở nên lớn hơn.33.Làm thế nào để đọc tệp CSV lớn trong r?data.table package took 0.04 seconds. whereas dplyr package took 0.07 seconds. So, data.table is approx. 40% faster than dplyr. Since the dataset used in the example is of medium size, there is no noticeable difference between the two. As size of data grows, the difference of execution time gets bigger.

33. How to read large CSV file in R?

Chúng ta có thể sử dụng hàm fread () của gói dữ liệu.fread() function of data.table package.

Thư viện (data.table) yyy = fread ("c: \\ users \\ Dave \\ example.csv", header = true)
yyy = fread("C:\\Users\\Dave\\Example.csv", header = TRUE)

Chúng ta cũng có thể sử dụng chức năng read.big.matrix () của gói bigmemory.read.big.matrix() function of bigmemory package.

34. Sự khác biệt giữa hai chương trình sau đây là gì?

1. Temp = data.frame (v1
2. temp = data.frame(v1=c(1:10),v2=c(5:14))

Trong trường hợp đầu tiên, nó đã tạo ra hai vectơ v1 và v2 và nhiệt độ khung dữ liệu có 2 biến có tên biến không đúng.Mã thứ hai tạo ra một tạm thời khung dữ liệu với tên biến thích hợp.

35. Cách xóa tất cả các đối tượng

rm (list = ls ())

36. Các thuật toán sắp xếp khác nhau trong R là gì?

Các thuật toán phân loại chính năm:

  1. Sắp xếp bong bóng
  2. Lựa chọn sắp xếp
  3. Hợp nhất sắp xếp
  4. Sắp xếp nhanh chóng
  5. Thùng sắp xếp

37. Sắp xếp dữ liệu theo nhiều biến

Tạo khung dữ liệu mẫu

mydata = data.frame (scord = ifelse (sign (rnorm (25)) ==-1,1,2), & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp;(1:25))
                    experience= sample(1:25))

Nhiệm vụ: & nbsp; bạn cần sắp xếp biến điểm theo thứ tự tăng dần và sau đó sắp xếp trải nghiệm biến theo thứ tự giảm dần.You need to sort score variable on ascending order and then sort experience variable on descending order.

Phương pháp cơ sở r

mydata1

Với gói dplyr

Thư viện (dplyr) myData1 = Sắp xếp (mydata, scoor, desc (kinh nghiệm))
mydata1 = arrange(mydata, score, desc(experience))

38. Thả nhiều biến

Giả sử bạn cần xóa 3 biến - x, y và z khỏi khung dữ liệu "mydata".

Phương pháp cơ sở r

mydata1

Với gói dplyr

Thư viện (dplyr) myData1 = Sắp xếp (mydata, scoor, desc (kinh nghiệm))
df = select(mydata, -c(x,y,z))

38. Thả nhiều biến

Giả sử bạn cần xóa 3 biến - x, y và z khỏi khung dữ liệu "mydata".

df = tập hợp con (mydata, select = -c (x, y, z))

Với gói dplyr & nbsp;

Thư viện (dplyr) df = select (mydata, -c (x, y, z))

40. Cách lưu mọi thứ trong phiên r

lưu.image (file = "dt.rdata")

41. Làm thế nào r xử lý các giá trị bị thiếu?

Thiếu giá trị được đại diện bởi vốn NA.

Phương pháp cơ sở r

mydata1

Với gói dplyr

Thư viện (dplyr) myData1 = Sắp xếp (mydata, scoor, desc (kinh nghiệm))
test1 = distinct(data, y, .keep_all= TRUE)


38. Thả nhiều biến

Giả sử bạn cần xóa 3 biến - x, y và z khỏi khung dữ liệu "mydata".

df = tập hợp con (mydata, select = -c (x, y, z))


Với gói dplyr & nbsp;

Let's set 2 dates :

Thư viện (dplyr) df = select (mydata, -c (x, y, z))
40. Cách lưu mọi thứ trong phiên r
difftime(dates[2], dates[1], units = "days")
floor(difftime(dates[2], dates[1], units = "weeks"))
floor(difftime(dates[2], dates[1], units = "days")/365)

lưu.image (file = "dt.rdata")

41. Làm thế nào r xử lý các giá trị bị thiếu?
interval(dates[1], dates[2]) %/% hours(1)
interval(dates[1], dates[2]) %/% days(1)
interval(dates[1], dates[2]) %/% weeks(1)
interval(dates[1], dates[2]) %/% months(1)
interval(dates[1], dates[2]) %/% years(1)

Thiếu giá trị được đại diện bởi vốn NA.

45. How to add 3 months to a date

Để tạo dữ liệu mới mà không có bất kỳ giá trị thiếu nào, bạn có thể sử dụng mã bên dưới:
mydate + months(3)

DF

Để tạo dữ liệu mới mà không có bất kỳ giá trị thiếu nào, bạn có thể sử dụng mã bên dưới:
library(lubridate)
date(mydate) # Extracting date part
format(mydate, format="%H:%M:%S") # Extracting time part

DF

42. Cách xóa các giá trị trùng lặp bằng một cột
month(mydate)
year(mydate)
hour(mydate)
minute(mydate)
second(mydate)

Giả sử bạn có một dữ liệu bao gồm 25 hồ sơ.Bạn được yêu cầu loại bỏ các bản sao dựa trên một cột.Trong ví dụ, chúng tôi đang loại bỏ các bản sao theo biến Y.

data = data.frame (y = mẫu (1:25, thay thế = true), x = rnorm (25))

  1. test = tập hợp con (dữ liệu,! trùng lặp (dữ liệu [, "y"]))))
  2. Phương pháp DPPLYR & NBSP;
  3. Thư viện (dplyr) test1 = khác biệt (dữ liệu, y, .keep_all = true)

43. Gói nào được sử dụng để chuyển dữ liệu với r

Các gói Reshape2 và Tidyr là các gói phổ biến nhất để định hình lại dữ liệu trong R.

Giải thích: Chuyển đổi dữ liệu

44. Tính số giờ, ngày, tuần, tháng và năm giữa 2 ngày, hãy đặt 2 ngày:

ngày

Difftime (ngày [2], ngày [1], đơn vị = "giờ") Difftime (ngày [2], ngày [1], đơn vị = "ngày") sàn (Difftime (ngày [2], ngày [1],đơn vị = "tuần")) sàn (Difftime (ngày [2], ngày [1], đơn vị = "ngày")/365)

Với gói Lubridate

Khoảng thời gian thư viện (Lubridate) (ngày [1], ngày [2]) %/ % giờ (1) khoảng (ngày [1], ngày [2]) %/ % ngày (1)[2]) %/ % tuần (1) khoảng (ngày [1], ngày [2]) %/ % tháng (1) khoảng (ngày [1], ngày
x = sample(1:50, 10)  
x

Số tháng đơn vị không được bao gồm trong hàm Difftime () cơ sở để chúng ta có thể sử dụng hàm khoảng () của gói LubRidate ().45.Cách thêm 3 tháng vào một ngày

mydate

46. Trích xuất ngày và thời gian từ dấu thời gian

rank(x)

Trích xuất các khoảng thời gian khác nhau

Ngày (MyDate) Tháng (MyDate) Năm (MyDate) Giờ (MyDate) Phút (MyDate) Thứ hai (MyDate)

order(x)

47. Những cách khác nhau để viết vòng lặp trong r

Chủ yếu có ba cách để viết vòng lặp trong r

Nếu bạn chạy x [order (x)], nó sẽ cho bạn kết quả tương tự như hàm sort ().Sự khác biệt giữa hai hàm này nằm ở hai hoặc nhiều chiều của dữ liệu (hai hoặc nhiều cột).Nói cách khác, hàm sort () không thể được sử dụng cho nhiều hơn 1 chiều trong khi x [thứ tự (x)] có thể được sử dụng.x[order(x)], it would give you the same result as sort() function. The difference between these two functions lies in two or more dimensions of data (two or more columns). In other words, the sort() function cannot be used for more than 1 dimension whereas x[order(x)] can be used.

50. & nbsp; trích xuất các biến số

cols
abc = mydata [,cols]

Khoa học dữ liệu với câu hỏi phỏng vấn r

Danh sách dưới đây chứa các câu hỏi phỏng vấn thường gặp nhất cho vai trò của nhà khoa học dữ liệu.Hầu hết các vai trò liên quan đến khoa học dữ liệu hoặc mô hình dự đoán đều yêu cầu ứng cử viên phải đối thoại tốt với R và biết cách phát triển và xác nhận các mô hình dự đoán với R.

51. Chức năng nào được sử dụng để xây dựng mô hình hồi quy tuyến tính?

Hàm Lm () được sử dụng để lắp mô hình hồi quy tuyến tính.

52. Làm thế nào để thêm tương tác trong mô hình hồi quy tuyến tính?

: Một tương tác có thể được tạo bằng cách sử dụng dấu hiệu ruột kết (:).Ví dụ, X1 và X2 là hai yếu tố dự đoán (biến độc lập).Sự tương tác giữa các biến có thể được hình thành như x1: x2. & Nbsp; xem ví dụ dưới đây -x1:x2. 
See the example below -

linreg1

Mã trên tương đương với mã sau:

linreg1

Mã trên tương đương với mã sau: It implies including both main effects (x1 + x2) and interaction (x1:x2).

53. How to check autocorrelation assumption for linear regression?

x1: x2 - Nó ngụ ý bao gồm cả hai hiệu ứng chính (x1 + x2) & nbsp; và tương tác (x1: x2) .53.Làm thế nào để kiểm tra giả định tự tương quan cho hồi quy tuyến tính?

54. Which function is useful for developing a binary logistic regression model?

durbinwatsontest () hàm54.Chức năng nào hữu ích để phát triển mô hình hồi quy logistic nhị phân?

55. How to perform stepwise variable selection in logistic regression model?

Hàm Glm () với & nbsp; family = "Binomial" 55.Làm thế nào để thực hiện lựa chọn biến từng bước trong mô hình hồi quy logistic?

56. How to do scoring in the logistic regression model?

Chạy chức năng Bước () sau khi xây dựng mô hình logistic với hàm glm ().56.Làm thế nào để ghi điểm trong mô hình hồi quy logistic?

Chạy dự đoán (logit_model, xác thực_data, type = "phản hồi")

57. Làm thế nào để chia dữ liệu thành đào tạo và xác nhận?
train<-mydata[dt,]
val<-mydata[-dt,]

dt = sort (mẫu (nrow (mydata), nrow (mydata)*. 7))

58. Làm thế nào để chuẩn hóa các biến?

59. How to validate cluster analysis

data2 = tỷ lệ (dữ liệu) 59.Cách xác nhận phân tích cụm

60. Which are the popular R packages for decision tree?

Xác thực phân tích cụm60.Gói R phổ biến nào cho cây quyết định?

RPart, bữa tiệc

61. Sự khác biệt giữa RPART và gói bên để phát triển mô hình cây quyết định là gì?

62. How to check correlation with R?

RPART dựa trên chỉ số Gini đo lường tạp chất trong nút.Trong khi hàm ctree () từ gói "bên" sử dụng quy trình kiểm tra ý nghĩa để chọn các biến.62.Làm thế nào để kiểm tra tương quan với r?

hàm cor ()

63. Bạn đã nghe 'Gói Resaimpo'? & NBSP;

64. How to fine tune random forest model?

Nó được sử dụng để đo lường tầm quan trọng tương đối của các biến độc lập trong một mô hình.64.Làm thế nào để tinh chỉnh mô hình rừng ngẫu nhiên?

65. What shrinkage defines in gradient boosting model?

Sử dụng hàm Tunerf ()65.Những gì co ngót xác định trong mô hình tăng gradient?

Sự co ngót được sử dụng để giảm, hoặc co lại, tác động của từng người học cơ sở được trang bị bổ sung (cây).

66. Làm thế nào để làm cho dữ liệu đứng yên cho mô hình chuỗi thời gian Arima?

67. How to automate arima model?

Hàm sử dụng & nbsp; ndiffs () trả về số lượng khác biệt cần thiết để tạo dữ liệu đứng yên.67.Làm thế nào để tự động hóa mô hình arima?

68. How to fit proportional hazards model in R?

Sử dụng & nbsp; auto.arima () hàm dự báo gói68.Làm thế nào để phù hợp & nbsp; mô hình mối nguy theo tỷ lệ trong r?

69. Which package is used for market basket analysis?

Sử dụng hàm coxph () của gói sinh tồn .69.Gói nào được sử dụng để phân tích giỏ thị trường?

70. Parallelizing Machine Learning Algorithms

Link : Parallelizing Machine Learning

10 bài hát R & B hàng đầu ngay bây giờ là gì?

R & B ngay bây giờ..
Cho đêm.Echlöe, Letto.....
Yamz ngọt ngào.Fetty wap.Yamz ngọt ngào.....
Giấc ngủ ngắn.Esza.SOS.....
Thay đổi.Jeremih.Thay đổi.....
Đặt n 'Chill (Feat. Một chiếc áo hoodie da boogie) Epink đổ mồ hôi $, một chiếc áo hoodie da boogie wit da.....
Quay khối.Eraahiim.Quay khối.....
Mãi mãi (với 6lack) Ejessie Reyez, 6lack.Yessie.....
Cuff nó.Ebeyoncé Phục hưng ..

Bài hát số 1 ngay bây giờ 2022 là gì?

Taylor Swift, người chống anh hùngAnti-Hero

40 bài hát R & B hàng đầu ngay bây giờ là gì?

Top 40 US R & B và Soul Track..
1 Chris Brown - dưới ảnh hưởng.Mua từ iTunes $ 1,29 ..
2 SZA - Không ai có được tôi.....
3 The Drifters - Giáng sinh trắng.....
4 Solomon Burke - Cry to Me (phiên bản duy nhất) ....
5 Whitney Houston - Tôi muốn nhảy với ai đó (người yêu tôi) ....
6 SZA - Giết Bill.....
7 Steve Lacy - Thói quen xấu.....
8 The Weeknd - Chết vì bạn ..

Bài hát R & B số một cho năm 2022 là gì?

"Chúng ta có vấn đề gì không?"