similar to: 2D array of strings

Displaying 20 results from an estimated 10000 matches similar to: "2D array of strings"

2009 Dec 24
3
Newbie: colSums() compared with Matlab's sum()
Hi all, I'm trying to learn R after years of Matlab's experience. Here is an issue I couldn't solve today. Consider the following piece of code (written by memory): for(i in 1:n){ submat <- data[1:i,] C <- colSums(submat) } The problem is that at the first iteration, data[1:1,] reduces to a vector and colSums returns an error. This sounds really strange to me
2003 Jul 17
3
how to divide a string into characters? - for comparing strings that is
Hi I am searching for a way to do something like "ABC" -> c("A","B","C"). How can this be accomplished? I tried cut() and split(), but they do something else, it seems. The purpose for doing this is to find the number of common (and uncommon) characters, i.e. ultimately I want something like this: > foo("ABD","ADE") c(2,1) # 2
2009 Apr 22
1
How do I loop through strings?
I read in a CSV file with Data <- read.csv(file="FileName.csv",head=TRUE,sep=",") the file containts strings in the 2nd and 3rd columns and each has about 1000 rows. I need to either loop through the strings there looking for strings that would trigger other logic or remove those rows and put them in another array and loop through them in the new array. I can't seem
2003 Jul 10
1
ordering of alphanumeric strings
Can someone tell me which version of R began to order alpha-numeric strings in this manner: "ABC 10" < "ABC 2" rather than "ABC 2" < "ABC 10" ? And, is there a way to force "ABC 2" to be ordered as a value less than "ABC 10"? thank you, Karen kschlauc at vt.edu
2012 May 30
3
Separate Array Variable Content
Hi, I am new in R, i have a matrix like this MyMatrix <- *ABC PQR XYZ* 10 20 30 40 50 60 70 80 90 And, i have an array containing some conditions like this, MyArray <- c("*ABC*>50","*PQR*<50","*ABC*<30 &* XYZ*<40") "ABC>50" "PQR<50" "ABC<30 & XYZ<40"
2010 Jul 13
1
StartsWith over vector of Strings?
Given vectors of strings of arbitrary length content <- c("abc", "def") searchset <- c("a", "abc", "abcdef", "d", "def", "defghi") Is it possible to determine the content String set that matches the searchset in the sense of 'startswith' ? This would be a vector of all strings in content that start with
2018 May 07
0
Discovering patterns in textual strings
Bert Here are some examples of the type of text strings I?m dealing with: ??????.??.??? ??????.??.?????????? ?Torrent? Pro - Torrent App ?Torrent?-Torrent Downloader 1 Pic 8 Words - Syllables 1 Pic 8 Words - Syllables 27043_Spanish songs for children 28.android.com.alpha.horoscope 28.android.com.bravo.horoscope 28.Card Game - Offline 28.card Game Multiplayer 37045_Spanish songs
2016 Dec 24
2
[PATCH] lib: Use a common function to validate strings.
As discussed in the thread on validating $TERM, it would be good to have a common function to do this. This is such a function. The main advantage is it includes unit tests which the previous functions did not. Rich.
2018 May 05
1
Discovering patterns in textual strings
"Does that help?" No. I am not your private consultant. You need to reply to the list, which I have cc'ed here, not just me. I am still somewhat confused by your specifications, but others may not be. Part of my confusion stems from your failure to provide a reproducible example (see e.g. the posting guide linked below). For example, I cannot tell from your text whether the Abc
2009 Oct 02
3
break up a string into strings with a fixed length
dear all, I have some very long strings and would like to break up each long string into multiple strings with a fixed length, e.g. to break up abcdefghijkl into abc, def, ghi, jkl I tried a couple of commands but was not successful. Any help will be appreciated. Best, Jimmy -- View this message in context:
2018 May 04
4
Discovering patterns in textual strings
R Help Forum Is there a R library (or a way) that I can extract unique character strings, or repeating patterns in textual strings. Say for example I have the following records: Abc_1234_kjhksh_276 Abc Abc_1234_lakdofyo_324 Bce_876_skdhk_*&^%*& Bce Bce_454 And I would like to see the following results Abc Abc_1234 Bce Jeff Reichman [[alternative HTML version
2017 Mar 16
1
Re: [RFC] per-device metadata
On Thu, Mar 16, 2017 at 04:17:51PM +0100, Peter Krempa wrote: > On Thu, Mar 16, 2017 at 14:52:47 +0000, Daniel Berrange wrote: > > On Thu, Mar 16, 2017 at 03:50:51PM +0100, Peter Krempa wrote: > > > On Thu, Mar 16, 2017 at 14:42:30 +0000, Daniel Berrange wrote: > > > > On Thu, Mar 16, 2017 at 01:46:38PM +0100, Peter Krempa wrote: > > > > > On Mon, Feb
2002 Mar 13
1
several bugs (PR#918) lists and matrices
### I got bit again by the same bugs I wrote about a year ago. ### The bugs are related to matrices and arrays of lists. ### 1. There is a clear inconsistency in how R handles two ### functionally equivalent statements. ### array() is able to take a list and create a matrix. ### matrix() is unable to create that matrix. > vector("list", 2) [[1]] NULL [[2]] NULL >
2017 Feb 27
3
[RFC] per-device metadata
Hi, Currently libvirt supports metadata in the domain XML. This is very convenient for data related to the VM, but it is a little awkward for devices. Let's pretend I want to have extradata (say, a specific port for a virtual switch) related to a device (say, a NIC). Nowadays I can store that data in the metadata section, but I need some kind of mapping to correlate this piece of information
2012 Aug 17
5
specific matrix element tranformation
Hi guys, I am trying to write a function that allows me to perform specific transformations to each element of a 2 by 2 matrix to generate a 3 by 3 matrix. Input into function-2 by 2 matrix Output from function -3 by 3 matrix For example: # a is my original 2 by 2 matrix #b is my new 3 by 3 matrix set.seed(2) a=matrix(rnorm(4),ncol=2) #let's say these are the transformations i wish to
2012 Feb 19
2
barplot with more than 1 variable
Dear R listers, I am trying to produce a simple (for a stata user) barplot with 4 countries on the x axis, each country observed in 2 subsequent years and 3 variables. Basically, I should have three bars for each year for each country. I am attaching the chart I made in Stata, but I am not sure you'll manage to see it! I did the following: #here I create the data-set TUSE2. The vectors mw, st
2007 Nov 06
1
Pass Array input to web service
Hello everybody, I'm using SSOAP and RCurl to call webservice. I got success in calling webservice with string as an input. Now i want to pass array as an input(can be single or multidimensional). When i do that i get error. unable to find an inherited method for function "toSOAP", for signature "data.frame", "textConnection", "NULL" When i remove
2004 Jul 29
2
Parsing multi-line strings. Bug? Feature?
I have an S-Plus library that I would like to port to R. The library sends a mix of static and dynamic output to an html file. For example cat(" ... Big block of HTML formatting code ... ") cat(dat()) cat(" More static text ") With S-Plus I can just cut and paste HTML code from other files into my S-Plus script file. This makes maintenance of the script fairly easy. The
2012 Apr 10
7
How to remove $ (Dollar sign) from string
How do I remove a "$" character from a string sub() and gsub() with "$" or "\$" as pattern do not work. > sub("$","","ABC$DEF") [1] "ABC$DEF" > sub("\$","","ABC$DEF") Error: '\$' is an unrecognized escape in character string starting "\$" >
2008 May 27
7
Application does not start or lacks functionalities
Following upgrading from etch to lenny (Debian Linux i386 gnome) the two Windods applications that I used either do not start or lack functionality. Installed wine wine_bin wine_utils libwine_alsa _cms _gl _gphoto _ldap vers 1.0-rc1-1_print _sane. I have purged out completely all these file and reinstalled. Same errors below: The application that does not start: francesco at deb32:~$