从计数向量生成数据数组

时间:2019-10-03 17:04:41

标签: r

说我有一个向量,该向量是名称的计数,是否可以从中创建数据矩阵?

我有一个向量,该向量是名称的计数(第一行中的字母是名称;第二行中的数字是名称的计数):

  

p0 [,1]

     

A B C D E F G H I J K

     

1 48 334 352 138 49 7 26 25 19 1

我希望有一个像这样的矩阵: A B B B ... B(总计48“ B”)C C C C C C ... C(总计334“ C”)...

1 个答案:

答案 0 :(得分:2)

我们可以Oct 03, 2019 6:52:55 PM org.apache.catalina.loader.WebappClassLoaderBase checkStateForResourceLoading INFO: Illegal access: this web application instance has been stopped already. Could not load []. The following stack trace is thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access. java.lang.IllegalStateException: Illegal access: this web application instance has been stopped already. Could not load []. The following stack trace is thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access. at org.apache.catalina.loader.WebappClassLoaderBase.checkStateForResourceLoading(WebappClassLoaderBase.java:1383) at org.apache.catalina.loader.WebappClassLoaderBase.getResource(WebappClassLoaderBase.java:1036) at com.mysql.cj.jdbc.AbandonedConnectionCleanupThread.checkThreadContextClassLoader(AbandonedConnectionCleanupThread.java:117) at com.mysql.cj.jdbc.AbandonedConnectionCleanupThread.run(AbandonedConnectionCleanupThread.java:84) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) at java.base/java.lang.Thread.run(Thread.java:834) 将向量的rep与该向量的值相结合

names