Re: [R] Use case for HDF5 dataspace interface

2017-08-03 Thread Koustav Pal
this usefulness in a code example using the rhdf5 dataspace interface. 2. Not related to comp bio. --- Koustav Pal, PhD student in Computational Biology, Francesco Ferrari's group, IFOM - The FIRC Institute of Molecular

[R] Use case for HDF5 dataspace interface

2017-08-01 Thread Koustav Pal
erface-what-does-it-do-and-what-is-its-real-world-applicati --- Koustav Pal, PhD student in Computational Biology, Francesco Ferrari's group, IFOM - The FIRC Institute of Molecular Oncology Milan, Italy. [[alter

Re: [R] R Programming help needed - Returning dataframes + 2 Variables dynamically

2017-07-28 Thread Koustav Pal
When you pass a variable to a function only the value is passed on, the variable itself remains unchanged. Updated x and y values will be in test_data[[1]] and test_data[[2]] respectively. --- Koustav Pal, PhD student

Re: [R] R Programming help needed - Returning dataframes + 2 Variables dynamically

2017-07-28 Thread Koustav Pal
c() is used for constructing vectors. Or in other words using the method c(x,y) provides a vector of length 2 (hopefully). Therefore, you are pushing a single vector to your function and not two arguments as you want. It should be Logic_fn(x,y) not Logic_fn(c(x,y)). Furthermore, i would

Re: [R] Ifelse statements and combining columns

2017-07-24 Thread Koustav Pal
That ifelse statement is a mess, it is missing brackets, comma separators between arguments and & or | between conditions. The bracket error points towards the invalid bracket you had in the second ifelse since it expects and yes and a no argument alongside conditions. ifelse(test = (dat$cond ==