Re: [R] Problem with Kruskal–Wallis test

2018-12-26 Thread John
On Fri, 21 Dec 2018 16:37:54 +0100 Giuseppe Cillis wrote: > Dear all, > I am a beginner with R (and also with the statistics) for which I > hope to be clear. > I should do this non-parametric test on data I extracted from maps. > In practice I have a column that represents the landscape Dynamics

Re: [R] Fwd: UPDATE

2018-12-26 Thread Caitlin
Is the file being saved as .xls, .xlsx, .csv, .tsv, or .txt? On Wed, Dec 26, 2018 at 10:14 PM Spencer Brackett < spbracket...@saintjosephhs.com> wrote: > Follow up, > > Would read.txt also work, as I am certain that I have both datasets in > .txt files? As to a previous users question concern th

Re: [R] Fwd: UPDATE

2018-12-26 Thread Spencer Brackett
Follow up, Would read.txt also work, as I am certain that I have both datasets in .txt files? As to a previous users question concern the .csv nature of the supposed excel file, I am uncertain as to how this was translated as such. The file is most certainly in excel. On Thu, Dec 27, 2018 at 12:

Re: [R] Fwd: UPDATE

2018-12-26 Thread Spencer Brackett
Caitlin, I tried your command in both RGui and RStudio but both came up as errors. I believe I made a mistake somewhere I labeling/downloading the files, which is the source of the confusion in R. I will re-examine the files saved on my desktop to determine the error. Regardless, would it be bet

Re: [R] Fwd: UPDATE

2018-12-26 Thread Caitlin Gibbons
Does this help Spencer? The read.delim() function assumes a tab character by default, but I specifically included it using the read.csv function. The downloaded file is NOT an Excel file so this should help. GBM_protein_expression <- read.csv("C:/Users/Spencer/Desktop/GBM protein_expression.tsv

Re: [R] Fwd: UPDATE

2018-12-26 Thread Richard M. Heiberger
this is wrong because the file is a csv file. read_excel is designed for xls files. GBM_protein_expression <- read_excel("C:/Users/Spencer/Desktop/GBM protein_expression.csv") How did you get a csv? it downloads as tsv. the statement you should use is in base, no library() statement is needed.

Re: [R] Fwd: UPDATE

2018-12-26 Thread Spencer Brackett
Sorry, my mistake. So I could still use read.table and should I try using a .txt version of the file to avoid the silent changes you described? Also, when I tried to simply this process by downloading the dataset onto RStudio opposed to R (Gui) I received the following... library(readxl) > GBM_p

Re: [R] Long input lines in R.exe

2018-12-26 Thread Jeff Newmiller
No. This is a limitation of CMD that R is not designed to work around. On December 26, 2018 8:47:44 AM PST, RK wrote: >Hi, > >When I run R.exe (or Rterm.exe) from cmd.exe and enter in a long input >line, e.g. > >print("123456789012345678901234567890123456789012345678901234567890123456789012345678

Re: [R] Fwd: UPDATE

2018-12-26 Thread Jeff Newmiller
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

Re: [R] Fwd: UPDATE

2018-12-26 Thread Jeff Newmiller
CSV and TSV are not Excel files. Yes, I know Excel will open them, but that does not make them Excel files. Read a TSV file with read.table or read.csv, setting the sep argument to "\t". On December 26, 2018 7:26:35 PM PST, Spencer Brackett wrote: >I tried importing the file without preview an

[R] Fwd: UPDATE

2018-12-26 Thread Spencer Brackett
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

[R] Long input lines in R.exe

2018-12-26 Thread RK
Hi, When I run R.exe (or Rterm.exe) from cmd.exe and enter in a long input line, e.g. print("12345678901234567890123456789012345678901234567890123456789012345678901234567890") the visible portion of the input is truncated to: print("12345678901234567890123456789012345678901234567890123456789012

Re: [R] Help converting .txt to .csv file

2018-12-26 Thread Spencer Brackett
Hello again, I worked on directly downloading the file into R as was suggested, but have thus far been unsuccessful. This is what I generated on my second attempt... GBM protein_expression<-(file.choose(), header=TRUE, sep="\t") Error: unexpected symbol in "GBM protein_expression" > GBM protein

Re: [R] Help converting .txt to .csv file

2018-12-26 Thread Spencer Brackett
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 wrote: > I looked at the first file. It gives an option to download as TSV > (tab separated values). > That is the same as CSV except with tabs in

Re: [R] Help converting .txt to .csv file

2018-12-26 Thread Richard M. Heiberger
I looked at the first file. It gives an option to download as TSV (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 downloaded file directly into R. read.delim looks as if it would work directly on the d

Re: [R] Help converting .txt to .csv file

2018-12-26 Thread Bert Gunter
Inline. -- Bert Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into it." -- Opus (aka Berkeley Breathed in his "Bloom County" comic strip ) On Wed, Dec 26, 2018 at 3:04 PM Spencer Brackett < spbracket...@saintjosephhs.com> wrote: > Good

[R] Help converting .txt to .csv file

2018-12-26 Thread Spencer Brackett
Good evening, I am attempting to anaylze the protein expression data contained within these two ICGC, TCGA datasets (one for GBM and the other for LGG) *File for GBM protein expression*: https://dcc.icgc.org/search?filters=%7B%22donor%22:%7B%22projectId%22:%7B%22is%22:%5B%22GBM-US%22%5D%7D,%22av

[R] Fwd: fields package question

2018-12-26 Thread Eric Berger
Forwarding to the full R-help list. The protocol is for everyone to see the full set of questions and answers. This allows for: 1. more people to contribute, which generally improves the quality of the answer 2. people with similar questions can find this thread via search and see the full

Re: [R] fields package question

2018-12-26 Thread Eric Berger
In your printing out of z your copy-paste effort seems to have missed columns 1-7 of rows 1-4. It would be better if you would provide the data by using the dput() function, as in: dput(y) dput(z) then copy-paste the output from that. On Wed, Dec 26, 2018 at 1:50 AM M P wrote: > Actually, let'