在R中将行转换为2列(Converting rows to 2 columns in R)
我有以下数据框。 我想将行转换为R中的两列
>10890 RNA 1 RNA 2 >1318 RNA 1 RNA 2 RNA 3
我想将它转换为两列
Column 1 Column 2 10890 RNA 1 10890 RNA 2 1318 RNA 1 1318 RNA 2 1318 RNA 3
I have the following data frame. I would like to convert the rows into two columns in R
>10890 RNA 1 RNA 2 >1318 RNA 1 RNA 2 RNA 3
I want to convert it in to two columns
Column 1 Column 2 10890 RNA 1 10890 RNA 2 1318 RNA 1 1318 RNA 2 1318 RNA 3
原文:https://stackoverflow.com/questions/17371551
更新时间:2023-06-11 10:06
最满意答案
问题现在已解决,以前在调试时我在cordova.js中注释了这一行
return prompt(argsJson, 'gap:'+JSON.stringify([service, action, callbackId]));
取消注释该行修复了问题。
The problem is fixed now, Previously while debugging i commented this line in cordova.js
return prompt(argsJson, 'gap:'+JSON.stringify([service, action, callbackId]));
Uncommenting the line fixed the problem.
相关问答
更多-
我怀疑这个明显的问题与android:supportsRtl="true"属性和你的设备/ emualtor的不同API级别有关。 来自官方文件 : 机器人:supportsRtl 声明您的应用程序是否愿意支持从右到左(RTL)布局。 如果设置为true且targetSdkVersion设置为17或更高,则系统将激活并使用各种RTL API,以便您的应用程序可以显示RTL布局。 如果设置为false或者targetSdkVersion设置为16或更低 ,则RTL API将被忽略或无效,并且无论与用户的Loc ...
-
正如cordova.js猜测的那样,我忘记了包含cordova.js 。 尽管我必须说,在我的防守(:P)中,包含一个脚本,如果它不在脚本中时(至少在浏览器中测试时),那是很奇怪的。 As ignitor guessed, I forgot to include the cordova.js. Though I must say, in my defense (:P), that it is weird to include a script like if it was on your root when ...
-
通过执行以下操作,我能够实现这一目标: 将此添加到我的index.html 在我的应用程序中定义了此功能 nativeBack: function() { console.log("back button was pushed..."); // navigationView.pop( ...
-
问题现在已解决,以前在调试时我在cordova.js中注释了这一行 return prompt(argsJson, 'gap:'+JSON.stringify([service, action, callbackId])); 取消注释该行修复了问题。 The problem is fixed now, Previously while debugging i commented this line in cordova.js return prompt(argsJson, 'gap:'+JSON.stri ...
-
AlarmManager在模拟器中触发但在物理设备上不触发(AlarmManager firing in emulator but not on physical device)[2024-03-01]
在Manifiest我有强制性的进入 android:process=":remote"是反强制性的。 请删除它。 很快。 在实际设备上,如果我启动MyApplication,添加警报,然后使用任务杀手终止该进程 任务杀手也会移除应用程序的警报,尽管此问题已通过Android 2.2解决。 and in the Manifiest I have the obligatory entry android:process=":remote" is anti-obligatory. Please remove i ... -
如@NinadChilap所述,它将生成NetworkOnMainThreadException 。 因此,如果您的网址有效,这将有效: Thread t = new Thread(new Runnable() { @Override public void run() { try { //To change body of implemented methods use File | S ...
-
如何从Cordova中的Android设备后退按钮退出应用程序?(how to quit the application from my android device back button in Cordova?)[2022-08-28]
您可以在InAppBroswer页面加载时注册后退按钮事件,然后单击后退按钮退出应用程序。 示例代码如下: function onBodyLoad() { document.addEventListener("deviceready", onDeviceReady, false); } function onDeviceReady() { //inapp is a sample button's id available in HTML $('#inapp').click( fun ... -
是否有可能在Web浏览器中模拟Android“硬件”后退按钮?(Is it possible to simulate Android “hardware” back-button in web browser?)[2023-07-22]
我有一个工作解决方案,我想与你分享。 当按下Alt+Ctrl+<它会触发backbutton事件。 当然,像navigator.app.exitApp()这样的东西不起作用,但简单的导航工作,例如关闭模态。 AppModule.run(function ($window, $document, $ionicPlatform) { 'use strict'; var document = $document[0]; function triggerBackButton() { ... -
解除/覆盖Cordova 3.5中的Android Back按钮(Disabel/Override the Android Back button in Cordova 3.5)[2023-02-25]
要禁用本机后退按钮功能,需要在传递给处理程序的事件对象上调用preventDefault() : document.addEventListener("backbutton", onBackKeyDown, false); function onBackKeyDown(e) { e.preventDefault(); } 如果您遇到其他错误,我建议删除并重新添加Android平台(确保首先安装最新版本的Cordova): $ npm update cordova -g $ cordova pla ... -
您确定已将cordova.js添加到login_page.html中的脚本中吗? 当Android应用程序收到“暂停”事件时,以下代码出现问题: this.loadUrl("javascript:try{cordova.fireDocumentEvent('pause');}catch(e){console.log('exception firing pause event from native');};"); 因此,它可能与上下文中缺少可变科尔多瓦有关。 添加cordova.js会将变量cordova ...