Re: Output for pasting multiple vectors

Sent from my iPhone

> On Jun 21, 2019, at 6:48 PM, Spencer Brackett <[hidden email]> wrote:
>
> My apologies. Is there a way to edit this within R?

Most people use an editor or an IDE to work on their code. The code you presented didn’t seem be doing what you were describing. You should put together a small example and the show what your goals are.

Re: Output for pasting multiple vectors

Note that just editing in R (or RStudio, or Notepad, or whatever) will not solve the problem... you MUST learn how to use your email client to set the format to send at least your R-help emails in plain text. If you don't do that, the email program will just screw up your hard work.

I do think using the reprex package to test your example for reproducibility will improve the clarity of your questions.

Re: Output for pasting multiple vectors

Mr. Barradas,

My apologies for the delayed response. No, (meth) is not a dataset within
CRAN. I’m not sure why my supervisor wrote that in as the object for the
bit of script I shared previously. Assuming that the correct object for
this particular command is to be a data, the one with which we are working
is a TCGA dataset containing Glioblastoma data. We are attempting to
analyze available methylation information.

Re: Output for pasting multiple vectors

On 6/25/19 6:29 AM, Spencer Brackett wrote:
> Mr. Barradas,
>
> My apologies for the delayed response. No, (meth) is not a dataset within
> CRAN. I’m not sure why my supervisor wrote that in as the object for the
> bit of script I shared previously. Assuming that the correct object for
> this particular command is to be a data, the one with which we are working
> is a TCGA dataset containing Glioblastoma data. We are attempting to
> analyze available methylation information.

In that case, you should be able to use `read.table` to pull the dataset
in from the TCGA archive and show what code you have used so far. Then
you can describe in detail what further transformations are desired.

You could have also tried to offer the output of dput(head(meth)) (but
do so before transforming to matrix. Transfoming to matrix will screw up
a lot of the information in any dataset that is not entirely numeric.

Re: Output for pasting multiple vectors

Mr. Barradas,

I got the same "output" as before, which is the + indicating that the
expression is incomplete (according to some R users response in this
chain).

Should the argument perhaps be c1 = strsplit(i, split = '\\', fixed =
T)[[1]] .... thereby eliminating the "." ?
The reprex and error message as the result of this is the same as the
previous one I sent.

I will send a more detailed description of what code I have done so far for
context.

Re: Output for pasting multiple vectors

The result of dput(head(meth)) is a very large data table/listing of data
by category of what I presume to be the data from the two TCGA .txt files I
referenced previously. Is this the output you were expecting?

Re: Output for pasting multiple vectors

A "very large" output from dput(head(meth)) may just mean that"meth" has factors instead of character columns. I recommend using the `stringsAsFactors=FALSE` argument if the data frame is being loaded using read.table or one of its variants. It almost always makes better sense to create factors explicitly after the data has been reviewed for validity.