521 questions
1
vote
2
answers
74
views
download csv file from OSF
I am trying to download a .csv file from a Public Open Science Framework (OSF) project through my script on GitHub. I do not want to download a local copy.
I've tried using two different options for ...
1
vote
3
answers
356
views
read csv - problems with delimiter and quoted numbers
I have difficulties reading in a csv file due to how the columns are "encoded".
The file uses comma as a delimiter. However, some numbers are decimals/percentages like 58,29% (also using a ...
0
votes
1
answer
86
views
read.csv and readr::read_delim yields different ID variables. Why?
I'm trying to import a dataframe where there are a household-ID (not unique) and an individual-ID (unique). The dataframe is in .csv file and is untouched from the time I downloaded it.
The unique ...
0
votes
1
answer
66
views
Dataset uploaded and verified, but cannot use read.csv
I have uploaded a csv I created. This dataset is visible in Kaggle under "My datasets" - I can open and inspect it.
I have tried various ways of linking a dataset to my notebook.
clicking ...
0
votes
3
answers
155
views
Among many subfolders, find CSVs starting with a given string and within ZIPs or not, and merge them while adding their names in a new column with R
In a folder (path = "D:/DataLogs/), I have several subfolders. Inside these subfolders, I would like to retrieve all the csv starting only with "QCLog" and merge them (rbind) into a ...
1
vote
1
answer
154
views
Split CSV file into multiple files using R without changing its data formatting
I have a myfile.csv file below whose columns are separated by a pipe (|) and I want to use R to split the file into 2 csv files with equal number of rows and with each csv file retaining the header ...
2
votes
1
answer
482
views
Why doesn't read.csv import blank cells as NA?
Why doesn't read.csv() interpret the blank cells in the linked .csv file as NA? It seems to ignore them whether the columns in the data frame are "character" or "factor" type.
Data:...
0
votes
0
answers
53
views
strip.white doesn't work in r if the data frame is too large
I import, clean, and merge two different data sets that are created from Qualtrics surveys. I use read.csv to load the data, and I have strip.white=TRUE to remove leading and trailing spaces. If I ...
0
votes
0
answers
103
views
Reading in csv or xlsx files / folders when using dynamic file path generation (I don't know if this is the right term)
Im running into an issue with my R script, where read.csv fails to read a csv from a file path. Essentially the goal of my script is to build a file path based on the step variable input. My issue is ...
1
vote
1
answer
293
views
Replacing " " space with "" nothing using gsub( " ", "", chr)
Here is the format of my data, imported from a CSV.
print(donnees_ventes3$V8[1:10])
[1] "0,00000" "0,00000" "0,00000" "0,00000" "0,00000&...
-1
votes
1
answer
197
views
R: How to convert CSV data to igraph object [closed]
I'm going to analyse (some exploratory analysis and I'm new to this subject) large networks in R. So I have a FLICKR data set in hand.
FLICKR DATA
If you see the data set, it consists of 4 different ...
0
votes
0
answers
168
views
Problem with read csv file in R from excel
I have a problem with loading csv files from excel in R.
I am saving data (looks like this for example:
Patient
Protein 1
Protein 2
Protein 3
P1
1.2
4.5
0
P2
4.0
6.2
0
P3
5.2
84.2
0.1
P4
30.1
79.2
52....
1
vote
1
answer
121
views
How to read CSV file in R with row title?
I try to read this CSV file:
There are 3 columns in this file.
when I read it in R by read.csv("file.csv")
I get:
It read just 2 columns instead of 3 columns and did some mixed between ...
0
votes
0
answers
80
views
Left-join failing because of date formats in R
I have one csv that contains 2 columns, one is weekly dates and the other one is daily dates for each day of every week.
In another csv I have weekly data and I want to make a copy of the csv, with ...
0
votes
1
answer
596
views
Importing .csv file into R studio cloud
I am trying to import a .csv file into R studio cloud using this code
data<-read.csv("C:/Users/piyus/Downloads/202004-divvy-tripdata/202004-divvy-tripdata.csv")
When executing this code ...