[R] Output for pasting multiple vectors

Rui Barradas ru|pb@rr@d@@ @end|ng |rom @@po@pt
Sat Jun 22 09:08:54 CEST 2019


Hello,

I cannot find the dataset. meth is a (CRAN) package dataset?

Rui barradas

Às 02:11 de 22/06/19, Spencer Brackett escreveu:
> Hello,
> 
> I am attempting to paste multiple vectors using the paste() function for a
> dataset that  I'm working with. Shouldn't I be receiving some kind of
> output as a result of the following?
> 
>   meth=as.matrix(meth)
>> colnames(meth) = sapply(colnames(meth), function(i){
> + c1 = strsplit(i,split ='.', fixed = T)[[1]]
> + c1[4] = paste(strsplit(c1[4],split = "",fixed = T)[[1]][1:2],collapse =
>   "")
> + paste(c1,collapse = ".")
> + {
> 
> Best,
> 
> Spencer Brackett
> 
> 	[[alternative HTML version deleted]]
> 
> ______________________________________________
> R-help using r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>



More information about the R-help mailing list