Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Hi - In R, I'm trying to convert the three columns (Year, Month, Day) to the format Day-Month-Year. I keep getting the following error so

Hi - In R, I'm trying to convert the three columns (Year, Month, Day) to the format Day-Month-Year. I keep getting the following error so would love to know what the correct R code is. Thanks

> head(weather) Year Month Day Rainfall Temp 1 2013 7 1 0.0 23.0 2 2013 7 2 0.0 22.1 3 2013 7 3 3.2 17.2 4 2013 7 4 2.0 16.8 5 2013 7 5 0.0 17.4 6 2013 7 6 0.0 17.3 > weather$date <- make_date(weather$year,weather$month, weather$day) Error in `$<-.data.frame`(`*tmp*`, "date", value = numeric(0)) : replacement has 0 rows, data has 365

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Accounting And Auditing Research And Databases Practitioner's Desk Reference

Authors: Thomas R. Weirich, Natalie Tatiana Churyk, Thomas C. Pearson

1st Edition

1118334426, 978-1118334423

More Books

Students also viewed these Databases questions

Question

How do Dimensional Database Models differ from Relational Models?

Answered: 1 week ago

Question

What type of processing do Relational Databases support?

Answered: 1 week ago

Question

Describe several aggregation operators.

Answered: 1 week ago