Skip to content

unclear message when running cSplit() #71

@yuliaUU

Description

@yuliaUU

I have written a code that uses cSplit function to separate a column in the data frame into multiple columns. Below is the reproducible example:

mtcars %>% rownames_to_column() %>% cSplit(., 'rowname', ' ')

Since I updated to R version 4.1.0. And after that the following code produces the following warning message that I was unable to resolve:

Warning messages:
1: In type.convert.default(X[[i]], ...) :
  'as.is' should be specified by the caller; using TRUE
2: In type.convert.default(X[[i]], ...) :
  'as.is' should be specified by the caller; using TRUE
3: In type.convert.default(X[[i]], ...) :
  'as.is' should be specified by the caller; using TRUE

I actually identified where the warning coming from:
it is from the default value of type.convert=TRUE.

But I am not sure why it is producing the warning, and what I should do ( I do want the type.convert to be set to TUE)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions