How to set data type of columns while reading from source

0 votes
How to set the data type of columns while reading from the source?
Oct 16, 2019 in Data Analytics by ch
• 3,450 points
657 views

1 answer to this question.

0 votes

@ch,

Add colClasses attribute to read the statement as below.

> superstore = read.csv("C:\\Users\\Sindhu\\Downloads\\global_superstore.csv",stringsAsFactors = FALSE,colClasses = c("Numeric","character"))
answered Oct 28, 2019 by Cherukuri
• 33,030 points

Related Questions In Data Analytics

0 votes
1 answer
0 votes
1 answer

How to spilt a column of a data frame into multiple columns

it is easily achievable by using "stringr" ...READ MORE

answered Apr 9, 2018 in Data Analytics by DeepCoder786
• 1,720 points
1,774 views
0 votes
1 answer

How to Identify comman pattern of the Products that sells more from a sales data base.

Hi, If you share a real database, then ...READ MORE

answered Sep 7, 2020 in Data Analytics by MD
• 95,460 points
828 views
0 votes
1 answer

How to code for the sum of imported data set in rstudio

@Lizzy, You can have a look here regarding ...READ MORE

answered Dec 9, 2020 in Data Analytics by Gitika
• 65,770 points
852 views
0 votes
1 answer

By using dpylr package sum of multiple columns

Basically here we are making an equation ...READ MORE

answered Apr 5, 2018 in Data Analytics by DeepCoder786
• 1,720 points
2,250 views
0 votes
1 answer

How to convert a text mining termDocumentMatrix into excel or csv in R?

By assuming that all the values are ...READ MORE

answered Apr 5, 2018 in Data Analytics by DeepCoder786
• 1,720 points
1,920 views
0 votes
1 answer

In a dpylr pipline how to use sample and seq?

For avoiding rowwise(), I prefer to use ...READ MORE

answered Apr 6, 2018 in Data Analytics by DeepCoder786
• 1,720 points

edited Jun 9, 2020 by Gitika 1,182 views
0 votes
1 answer

How to create a list of Data frames?

Basically all we have to do is ...READ MORE

answered Apr 9, 2018 in Data Analytics by DeepCoder786
• 1,720 points
1,339 views
0 votes
1 answer

How to edit the data source from R?

Use edit function like below and pass ...READ MORE

answered Oct 14, 2019 in Data Analytics by Cherukuri
• 33,030 points
1,065 views
+1 vote
2 answers

How to sort a data frame by columns in R?

You can use dplyr function arrange() like ...READ MORE

answered Aug 21, 2019 in Data Analytics by anonymous
• 33,030 points
1,812 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP