[BlindRUG] [EXTERNAL EMAIL] Re: BlindRUG Digest, Vol 63, Issue 1

Robin Williams Robin.Williams at atass-sports.co.uk
Fri Feb 11 10:01:19 UTC 2022


Apologies, I accidentally hit send in my previous message.
--------
Hi Amy,

Here are a few answers to some of your difficulties.

When exporting data, set row.names=FALSE when calling write.csv or write.table. The dataframes you're writing out have a rownames component, which are being written to file. Then when you read that file back in, they're being added as an extra column in your new dataframe.

If you have a matrix for which you want to get the row standard deviations, you should be able to do apply(x,1,sd)

In terms of your difficulties in combining multiple dataframes, I can only assume they have different numbers of columns, or perhaps mismatching column names?

You might like to learn about .Rhistory files to save and load the history of your session. My advice though would be to have all your commands in a script, so you can run your session with someone else and debug.

In general it's a good idea to familiarise yourself with the R help system. It is certainly a learning curve, but a worthwhile one if you're planning to do a lot of work in R.

HTH,
R
-----Original Message-----
From: BlindRUG <blindrug-bounces at nfbnet.org> On Behalf Of Amy Albin via BlindRUG
Sent: 10 February 2022 17:25
To: blindrug at nfbnet.org
Cc: Amy Albin <amyralbin at gmail.com>
Subject: [EXTERNAL EMAIL] Re: [BlindRUG] BlindRUG Digest, Vol 63, Issue 1

Okay I've been having lots of problems with classes. Like when I turn a variable into numeric it will still stay a list. When trying to combine 4 data.frames into one, it won't let me because they have different numbers of rows. I don't think it should matter. Like it doesn't matter if not all the same number of people were in each condition, so why can't I combine them?

Another problem is every time I export to .csv and then reimport into R, it adds an extra column. Every time. So the first day I'm working in columns 2:13, second day it migrates to columns 3:14, third day it's 4:15.

Also I can't figure out how to get row standard deviations.

As far as problem solving, what I mean is that many times just Googling won't work. I try to apply what the code says from a website and it doesn't work because maybe something's different about my data.
Like one example was that the website didn't say you had to remove missing data in order for it to work, so I spent like an hour not knowing what to do with "incorrect number of dimensions" error.

My final question is: Is there a way to log the entire R history including error messages into a text file? This would help me a lot when I'm working with others and need to tell them what went wrong.
Again, I found a website that claimed to explain how to do it but it didn't work for me.

Thanks.

Best,

Amy
Pronouns: she/her/hersOn 2/10/22, blindrug-request at nfbnet.org <blindrug-request at nfbnet.org> wrote:
> Send BlindRUG mailing list submissions to
> 	blindrug at nfbnet.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
> 	http://nfbnet.org/mailman/listinfo/blindrug_nfbnet.org
> or, via email, send a message with subject or body 'help' to
> 	blindrug-request at nfbnet.org
>
> You can reach the person managing the list at
> 	blindrug-owner at nfbnet.org
>
> When replying, please edit your Subject line so it is more specific 
> than "Re: Contents of BlindRUG digest..."
>

_______________________________________________
BlindRUG mailing list
BlindRUG at nfbnet.org
http://nfbnet.org/mailman/listinfo/blindrug_nfbnet.org
To unsubscribe, change your list options or get your account info for BlindRUG:
http://nfbnet.org/mailman/options/blindrug_nfbnet.org/robin.williams%40atass-sports.co.uk
The list archive can be viewed at:
http://www.nfbnet.org/pipermail/blindrug_nfbnet.org
More information and useful links about using R as a blind person can be obtained at:
http://R-Resources.massey.ac.nz

Look for help using R commands by reading the accessible e-book "Let's Use R Now" compiled by Jonathan Godfrey at:
http://R-Resources.massey.ac.nz/lurn/front.html




More information about the BlindRUG mailing list