read.csv Questions
4
Solved
I got several CSV files which contain numbers in the local german style i.e. with a comma as the decimal separator and the point as the thousand separator e.g. 10.380,45. The values in the CSV file...
Factual asked 17/8, 2016 at 14:59
12
Solved
I am trying to import a csv that is in Japanese. This code:
url <- 'http://www.mof.go.jp/international_policy/reference/itn_transactions_in_securities/week.csv'
x <- read.csv(url, header=FAL...
17
I'm trying to read a .csv file into R and upon using this formula:
pheasant<-read.table(file.choose(),header=TRUE,sep=",")
I get this warning message:
"incomplete final line found by readTab...
Inoue asked 13/5, 2011 at 10:35
7
Solved
I have this file (http://b7hq6v.alterupload.com/en/) that I want to read in R with read.csv. But I am not able to detect the correct encoding. It seems to be a kind of UTF-8. I am using R 2.12.1 on...
Rickets asked 26/1, 2011 at 16:11
6
Solved
I'm trying to read into R a csv file that contains information on political contributions. From what I understand, the columns by default are imported as factors, but I need the the amount column (...
8
Solved
I have been trying to read the excel file but seems like there is something wrong.
The file is stored in Documents folder in excel format.
These are the error messages that I get :
table <- r...
4
Solved
I am stumped. Normally, read.csv works as expected, but I have come across an issue where the behavior is unexpected. It most likely is user error on my part, but any help will be appreciated.
Her...
6
Solved
I'm writing an R package where the R code talks to a Java application. The Java application outputs a CSV formatted string and I want the R code to be able to directly read the string and convert i...
8
I am very new to R and I am having trouble accessing a dataset I've imported. I'm using RStudio and used the Import Dataset function when importing my csv-file and pasted the line from the console-...
5
Solved
I asked a question about this a few months back, and I thought the answer had solved my problem, but I ran into the problem again and the solution didn't work for me.
I'm importing a CSV:
orders...
Wideawake asked 4/5, 2012 at 1:11
4
Solved
Question:
Is there a way to specify the Date format when using the colClasses argument in read.table/read.csv?
(I realise I can convert after importing, but with many date columns like this, it w...
Daryl asked 23/10, 2012 at 1:22
2
Solved
Consider the following comma separated file. For simplicity let it contain one line:
'I am quoted','so, can use comma inside - it is not separator here','but can\'t use escaped quote :=('
If...
7
Solved
I am trying to specify the colClasses options in the read.csv function in R. In my data, the first column time is basically a character vector, while the rest of the columns are numeric.
data <-...
3
Solved
I have a CSV file with two header rows, the first row I want to be the header, but the second row I want to discard. If I do the following command:
data <- read.csv("HK Stocks bbg.csv", h...
4
Solved
I am using R to do some data pre-processing, and here is the problem that I am faced with: I input the data using read.csv(filename,header=TRUE), and then the space in variable names became ".", fo...
1
Solved
I skipped second row of the data using this command:
Df=(read.csv(“IMDB_data.csv”, header=T, sep=",")[-2,])
What is the explanation behind this?
Can it be used for skipping more than 1 specific ...
1
Solved
My code is as follows:
read.csv("http://asic.gov.au/Reports/YTD/2018/RR20180420-001-SSDailyYTD.csv", skip=1, fileEncoding = "UTF-16", sep = "\t", header = FALSE)
R 3.4.3 - Code executes cleanly...
Jorry asked 27/4, 2018 at 20:50
2
Solved
I wish to skip the 1st and 3rd rows of my csv file when importing the file into a data frame in R.
In the original file my headers are on line 2.
Using the skip argument in read.csv I can...
4
Solved
I was on that post read.csv and skip last column in R but did not find my answer, and try to check directly in Answer ... but that's not the right way (thanks mjuarez for taking the time to get me ...
2
I have read several other posts about how to import csv files with read.csv but skipping specific columns. However, all the examples I have found had very few columns, and so it was easy to d...
3
Solved
I have been using the following command for a long time without problem:
spy <- read.csv("http://ichart.finance.yahoo.com/table.csv?s=SPY")
But in the past few days it started to throw the fo...
Veneration asked 20/4, 2017 at 21:6
2
Solved
I have a csv that I would like to import into R as a data.frame. This csv has headers such as USD.ZeroCouponBondPrice(1m) and USD-EQ-SP500 that I can't change. When I try to import it into R, howev...
2
Solved
I am aware this question has been asked multiple times, but despite of trying to apply the aforementioned solutions i was not able to solve my little problem:
I have saved all my .csv that i...
2
Solved
I'm trying to read a file into R using data.table / fread. Some of the fields have leading zeros and I just want to read the data in as characters and manually fix them. However I can't figure out ...
Mandelbaum asked 25/5, 2017 at 21:58
1
I wanna read the data from a csv file, save it as a matrix and use it for visualization.
data<-read.table("Desktop/Decision_Tree/cor_test_.csv",header = F,sep = ",")
data
V1 V2 V3 V4 V5 V6
1 1...
Rotl asked 12/4, 2017 at 6:55
1 Next >
© 2022 - 2024 — McMap. All rights reserved.