MarcLavielle / mlxR

mlxR
Other
18 stars 5 forks source link

what is tolist #1

Closed romainfrancois closed 9 years ago

romainfrancois commented 9 years ago

The tolist function seems to be used in addFieldsFromHeader

$ grep tolist mlxR/R/*.R
mlxR/R/addFieldsFromHeader.R:        structure[header[[i]]] <- tolist(value[,i])

What is it ? I can't find it. ping @MarcLavielle

romainfrancois commented 9 years ago

R CMD check complains about it:

* checking R code for possible problems ... NOTE
addFieldsFromHeader: no visible global function definition for ‘tolist’
MarcLavielle commented 9 years ago

length(couples) always>0.

Then, this if statement can be removed

if (length(couples)==0){ for (i in 1:length(header)){ structure[header[[i]]] <- tolist(value[,i]) } }else{

2014-12-31 11:53 GMT+01:00 Romain François notifications@github.com:

R CMD check complains about it:

  • checking R code for possible problems ... NOTE addFieldsFromHeader: no visible global function definition for 'tolist'

Reply to this email directly or view it on GitHub https://github.com/romainfrancois/mlxR/issues/1#issuecomment-68435370.

All different, all equal http://www.math.u-psud.fr/~lavielle/book.html