Please always reply-all to keep the list involved.
If you used Save As to change the data format to Excel AND the file
extension to xlsx, then yes, you should be able to read with readxl. I
don't recommend it, though... Excel often changes data silently and in
irregularly located places in your file.
On December 26, 2018 7:38:16 PM PST, Spencer Brackett <
spbrackett20 at saintjosephhs.com> wrote:
So even if I imported the file form ICGC to my desktop as an excel
file,
and can view and saved the data as such, it is still a TSV?
On Wed, Dec 26, 2018 at 10:35 PM Jeff Newmiller
<jdnewmil at dcn.davis.ca.us>
wrote:
CSV and TSV are not Excel files. Yes, I know Excel will open them,
that does not make them Excel files.
Read a TSV file with read.table or read.csv, setting the sep argument
"\t".
On December 26, 2018 7:26:35 PM PST, Spencer Brackett <
spbrackett20 at saintjosephhs.com> wrote:
I tried importing the file without preview and recieved the
following....
library(readxl)
GBM_protein_expression <- read_excel("C:/Users/Spencer/Desktop/GBM
protein_expression.csv")
Error: Can't establish that the input is either xls or xlsx.
View(GBM_protein_expression)
Error in View : object 'GBM_protein_expression' not found
Error in gzfile(file, mode) : cannot open the connection
In addition: Warning message:
In gzfile(file, mode) :
cannot open compressed file
'C:/Users/Spencer/AppData/Local/Temp/RtmpQNQrMh/input147c61fc5b52.rds',
probable reason 'No such file or directory'
library(readxl)
GBM_protein_expression <-
read_excel("C:/Users/Spencer/Desktop/GBM_protein_ expression.xlsx")
readxl works best with a newer version of the tibble package.
You currently have tibble v1.4.2.
Falling back to column name repair from tibble <= v1.4.2.
Message displays once per session.
View(GBM_protein_expression)
Also, the area above my console says that no data is available in
table. Is this perhaps the result of lack of preview or the fact
the
excel file itself contains no numerical data, but only TRUE or FALSE
entries?
On Wed, Dec 26, 2018 at 9:57 PM Spencer Brackett <
spbrackett20 at saintjosephhs.com> wrote:
Hello again,
I worked on directly downloading the file into R as was suggested,
have thus far been unsuccessful. This is what I generated on my
attempt...
GBM protein_expression<-(file.choose(), header=TRUE, sep="\t")
Error: unexpected symbol in "GBM protein_expression"
protein_expression<-(file.choose(GBM_protein_expression.xlsx),header=TRUE,
sep="\t")
Error: unexpected symbol in "GBM protein_expression"
What part of the argument is in error?
Also I tried importing the dataset as an excel file on RStudio to
could solve my problem that way. However, my imported excel file
stuck in the 'retrieving preview data' and no data is appearing.
data file prehaps too large or in the wrong format?
On Wed, Dec 26, 2018 at 6:42 PM Spencer Brackett <
spbrackett20 at saintjosephhs.com> wrote:
Mr. Heiberger,
Thank you for the insight! I will try out suggestion.
Best,
Spencer Brackett
On Wed, Dec 26, 2018 at 6:34 PM Richard M. Heiberger
I looked at the first file. It gives an option to download as
(tab separated values).
That is the same as CSV except with tabs instead of commas.
You do not need any external software to read it. Read the
file directly into R.
read.delim looks as if it would work directly on the downloaded
?read.delim
The notation "\t" means the tab character.
As an aside, stay away from notepad. it is too naive for almost
anything interesting.
The specific case I often see is people reading linux-style text
with notepad, which doesn't
understand NL terminated lines. nicely formatted text files
illegible.
On Wed, Dec 26, 2018 at 6:04 PM Spencer Brackett
<spbrackett20 at saintjosephhs.com> wrote:
Good evening,
I am attempting to anaylze the protein expression data
these two ICGC, TCGA datasets (one for GBM and the other for
*File for GBM protein expression*:
*File for LGG protein expression:*
*
*
When I tried to transfer the files from .txt (via Notepad)
Excel), the data appeared in the columns as unorganized and
script... not like how a typical csv should be arranged at
dataset to be converted into .csv in order to analyze it in R,
I am hoping someone here might help me in doing that. If not,
perhaps some other way that I could analyze the datatsets on
is downloaded from the dataportal ICGC?
Best,
Spencer Brackett
[[alternative HTML version deleted]]