• python
  • javascript
  • reactjs
  • sql
  • c#
  • java
Facebook Twitter Instagram
Devs Fixed
  • python
  • javascript
  • reactjs
  • sql
  • c#
  • java
Devs Fixed
Home ยป Resolved: R using a function to create a new column based on another column

Resolved: R using a function to create a new column based on another column

0
By Isaac Tonny on 17/06/2022 Issue
Share
Facebook Twitter LinkedIn

Question:

I’ve read through many of the similar questions and I can’t figure out what I”m doing wrong. I think I don’t properly understand the apply functions, or the dplyr version. Any help is appreciated. Here is my data:
I have written a function to parse the Sample.ID and determine what ‘location’ or column on the plate that sample was in. Samples 1-8 are in column 1, 9-16 are in column 2 etc.
But this doesn’t seem to work, or really seem logical either.

If you have better answer, please add a comment about this, thank you!

r sapply tidyr
Share. Facebook Twitter LinkedIn

Related Posts

Resolved: Java Swing center JLabel in JPanel with two JLabels

27/03/2023

Resolved: How to compare two text files and and change the sign of the data in powershell?

27/03/2023

Resolved: Java Virtual Machines deleted

27/03/2023

Leave A Reply

© 2023 DEVSFIX.COM

Type above and press Enter to search. Press Esc to cancel.